Can t close examples

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Alex

Can t close examples

Post by Alex »

Hi!

I am completely new to Irrlicht and just downloaded the SDK 0.4.2
When running the examples on WinXP I don t know how to close them again: The mouse stays in the inner boundings of the window so I cannot reach the x in the upper right corner of the frame.I tried <esc> without success and even the taskmager ignores <Enter> to end task.

Has anybody experienced the same problem?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

yes, I found the same thing.

If you look in the code, there actually isnt any event handling code that will close on 'esc'. So, the program is acting true to its code.

Its just that the design sucks. Currently, if you 'alt-tab' you can get to the console window and press 'Ctrl-C' to close the program. Otherwise, you should add in an event handler which will exit on 'ESC' (what I did for most of the examples).
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

Alt+F4 also works. I believe the reason Esc doesn't automatically close the program is because that might not actually be what everyone wants to happen. For instance, for some games you might just want Esc to bring up a menu. The way it is set up now allows the programmer to decide what Esc will do.
Post Reply