Page 1 of 1

Freezing up

Posted: Fri Dec 10, 2004 10:04 pm
by Syphonix
Why is it that sometimes Irrlicht games will stop all mouse input to your computer? I'm thinking that it is the method that adds a First Person Shooter camera, but I'm not 100% sure about that. Can someone please explain to me how to solve this problem? It is getting annoying, as I have to restart my computer after every run.

Also, how can I get input from the keyboard using Irrlicht? This could solve my problem temporarily.

Posted: Fri Dec 10, 2004 11:15 pm
by DarkWhoppy
Thats strange how you got mouse input to work before key input. lol.... because all tutorials deal with keyboard input... You could also ALT + TAB out of your application. It probably makes the mouse invisible, and resets the mouse position to the center of the screen every time you move the mouse. :wink:

To "see" your mouse, add this:

device->getCursorControl()->setVisible(true);


The movement tutorials:

http://irrlicht.sourceforge.net/tut004.html

Posted: Sat Dec 11, 2004 12:20 am
by Syphonix
Even if I ALT+TAB out, the mouse still doesn't work. The visibility thing doesn't matter either.

and resets the mouse position to the center of the screen every time you move the mouse.
Yeah, that's whats going on. How would I fix it?

Posted: Sat Dec 11, 2004 12:26 am
by DarkWhoppy
I'm not sure, but ALT + F4 should close your application instead of having to restart. (thats how I close the SpecialFX example because it uses the FPS camera)

Posted: Sat Dec 11, 2004 1:14 am
by Syphonix
It works! thanks!

Posted: Sat Dec 11, 2004 1:39 am
by DarkWhoppy
No prob, but I really suggest adding an EvenReceiver and making the ESCAPE key close the device.

Posted: Sat Dec 11, 2004 2:21 am
by Syphonix
I learned from gamedev.net that F10 allows you to move the mouse again. I was going to add the EventReciever thing, but then I learned about F10.