Page 1 of 1

Quitting example programs

Posted: Sat Jul 15, 2006 4:03 pm
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?

Posted: Sat Jul 15, 2006 6:24 pm
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;

Posted: Sat Jul 15, 2006 7:30 pm
by fireside
Ah. Thanks a lot.