Own Mouscursor?

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

Own Mouscursor?

Post by Squarefox2 »

Hello,

does Irrlicht support own mouse-cursors in any way?

Greetings,
Squarefox
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yes. Make the ICursorControl invisible. Load an image. Write an event receiver to move the image to the position where the cursor would be.

Travis
Squarefox2
Posts: 67
Joined: Mon Feb 02, 2009 10:19 am

Post by Squarefox2 »

How can I change the drawing-priority of the GUI-Items?
I don't want a mousecursor that is hidden behind buttons etc.

Greetings,
Squarefox
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Most likely you also don't want a mouse-cursor that depends on FPS - which you would get with that solution. So I wouldn't recommend doing it that way.

Irrlicht has no support yet for platform independent mouse-cursors - so you will have to use the corresponding functions of your OS for now. Seeing a patch for that would be nice :-)
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
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

I wouldnt use IGUIImage, i used draw2dImage in the update loop rather. draw it after guienv->drawAll();
Post Reply