Disabling the mouse

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
Guest

Disabling the mouse

Post by Guest »

Hello,

I'd like to disable the arrow of the mouse : I don't want moving the view of my camera with the mouse.
How to do this ?

Thx

Sam.
The Crusher
Posts: 7
Joined: Tue Sep 16, 2003 8:11 pm

Post by The Crusher »

That's easily:
Make this in your code

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

thats all!!!!
:lol:
Guest

Post by Guest »

i have already done it ! but it doesn't work !

I want moving freely the mouse on my buttons (my gui).

Sam.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Don't use addCameraSceneFPS.

FPS stands for First Person Shooter and is coded to move the camera with the mouse.

Instead, use

Code: Select all

virtual ICameraSceneNode *  addCameraSceneNodeFPS (ISceneNode *parent=0, f32 rotateSpeed=100.0f, f32 moveSpeed=500.0f, s32 id=-1)=0 
Also, you'll want to make the cursor visible unless you want to make your own image.

Code: Select all

device->getCursorControl()->setVisible(true); 
Crud, how do I do this again?
Guest

Post by Guest »

I think i must use this function :

Code: Select all

 
virtual ICameraSceneNode* irr::scene::ISceneManager::addCameraSceneNode  	(   	ISceneNode *   	  parent = 0,
		const core::vector3df &  	  position = core::vector3df(0, 0, 0),
		const core::vector3df &  	  lookat = core::vector3df(0, 0, 100),
		s32  	  id = -1
	)  	[pure virtual]
I got a problem to move the camera correctly with get and set Position

a clue ?

Sam
Guest

Post by Guest »

I resolve my problem !

How to disable the sliding of the camera when it collides with the walls ?

Sam.
Post Reply