addCameraSceneNodeFPS + detach cursor?

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
admgamer
Posts: 21
Joined: Tue Feb 12, 2008 10:49 am

addCameraSceneNodeFPS + detach cursor?

Post by admgamer »

Hi,

I was wondering if it's possibel to detach or basically freeze movement of an FPS camera allowing you to use the mouse. For example when you press Escape and an option menu appears etc?

Thankyou
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Code: Select all

camera->setInputReceiverEnabled(false);
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Maybe have two cameras.
1 is FPS and 1 is normal.
On pause switch to the normal camera, on unPause switch back to the FPS cam.

EDIT:
Oops, lol, I totally forgot about setInputReceiverEnabled(bool)..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Has the problem been solved where setting that to false whilst a key was held down would make the camera keep responding to that key even when it was let up?

If you look at the source for the mesh viewer example that provides some way of getting the mouse back from the fps camera, not sure what it's actually doing though as i've not looked at that source.
Image Image Image
admgamer
Posts: 21
Joined: Tue Feb 12, 2008 10:49 am

Post by admgamer »

thanks peeps :)

saw that function but didnt quite understand what it was lol i need to use the API documentation a hell of a lot more :p
Post Reply