Changing Mouse Cursor Position?

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
Squarefox2
Posts: 67
Joined: Mon Feb 02, 2009 10:19 am

Changing Mouse Cursor Position?

Post by Squarefox2 »

Hello,

how can I change the position of the mouse-cursor?
I want to implement an own 3rd-person-camera. It should rotate, when I move the mouse.

I was thinking about checking the position of the mouse-cursor, then rotating corresponding to it and then set it back into the middle of the screen.

So it could not hang at the border of the screen, which would make rotating in one direction impossible.

Greetings,
Squarefox
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

virtual void gui::ICursorControl::setPosition (f32 x, f32 y) is your friend.
Ein
Posts: 33
Joined: Thu Feb 12, 2009 11:39 pm
Location: UK - Matrix
Contact:

Re: Changing Mouse Cursor Position?

Post by Ein »

Squarefox2 wrote:... checking the position of the mouse-cursor...
virtual core::position2d<s32> irr::gui::ICursorControl::getPosition()
and cliky and the 2D tutorial shows some use of it clicky

HTH,
Pete
Ein knowledge seeker
Post Reply