I'm using a modified FPS Camera to move around and examine meshes of interest in the Irrlicht environment. I've noted that while the app is running the mouse is completely bound to the camera aiming function; even when I control-tab away from the app the mouse cursor won't leave the boundaries of the game engine window.
I'd like to define a key command that disables the camera input somehow, so the user can use the mouse normally as though the app weren't running, then be able to return to focus on the app and resume the mouse's connection to the camera. I'm at a loss what method to use in order to accomplish this. Is there something as simple as a way to set the active camera to null and then reinstate it? Does this require something more drastic, like de-activating the whole window?
Some advice and/or pointers to the appropriate methods would be greatly appreciated.
Many thanks in advance!
[SOLVED] Relenquish FPS Camera's hold on mouse movements?
[SOLVED] Relenquish FPS Camera's hold on mouse movements?
Last edited by Spinland on Wed Jul 21, 2010 2:57 pm, edited 1 time in total.
you can create another non-fps-camera and switch between them...
but easiest would be to call setInputReceiverEnabled(true/false) on the camera...
but easiest would be to call setInputReceiverEnabled(true/false) on the camera...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Thanks! I actually just came back here to report that I'd successfully added a "vanilla" camera and a key command to swap between them and that works perfectly. When it's swapped out the view stays where it was and all does just as I wanted. Yay!
Then I see your much simpler solution and I'm all
Many thanks again!
Then I see your much simpler solution and I'm all
Many thanks again!