Quitting example programs

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
fireside
Posts: 158
Joined: Thu Dec 01, 2005 10:55 pm

Quitting example programs

Post by fireside »

Hi. I'm on Linux and finally figured out the recompile problem for older nvidia cards and got irrlicht examples working. At least, most things seem to work, but I can't close the applications if there's a mouse move. I pressed escape and every key I could think of. The arrow keys work so I know I'm getting keyboard and mouse input. Sorry if I missed reading something, but how do you close the applications?
cadue
Posts: 72
Joined: Mon Mar 13, 2006 8:33 pm
Location: Italy - Friuli - Monfalcone - Staranzano

Post by cadue »

you can use ALT+F4, or add in the program (in the class IEventReceiver, in the switch for the keyBoard input) this code:

Code: Select all

case KEY_ESCAPE:
                    device->closeDevice();
                    break;
excuse me for my bad english and for my ignorance...but I'm 14 and i come from Italy, where the study of english is a optional (-:
fireside
Posts: 158
Joined: Thu Dec 01, 2005 10:55 pm

Post by fireside »

Ah. Thanks a lot.
Post Reply