Cursor problem :S

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
Heresiarch
Posts: 14
Joined: Mon Mar 16, 2009 1:21 pm
Location: Finland

Cursor problem :S

Post by Heresiarch »

Hello again.
I have a noobish question.
I have currently started to do some kind of editor,
but now i have a problem. My mouse/cursor is moving the camera, and i cant get it to the menu above :?
(You cant see the cursor itself, but it is in the middle)
Image

How to fix this?

Thank you.
CuteAlien
Admin
Posts: 10034
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

You need to have 2 different modes. One to move the camera and one for the GUI. Check example 09 meshviewer which does something similar.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Also, try:

Code: Select all

camera->setInputReceiverEnabled(false);
This disables the camera from using the mouse. You may also have to reset the cursor to visible.
Heresiarch
Posts: 14
Joined: Mon Mar 16, 2009 1:21 pm
Location: Finland

Post by Heresiarch »

Oh yes, thank you :P
Post Reply