Page 1 of 1

[Solved] Need help : custom mouse cursor

Posted: Wed Nov 30, 2016 08:28
by NevilClavain
Hi all

I'm new to CEGUI; i'm using 0.8.7 under windows, D3D9 & D3D11 renderer.

I'm posting here because I did'nt get answers on the official CEGUI about my current topic : I'd like to set a customized mouse cursor in my app, rather than the OS default one. Can someone point me to a link/tutorial explaining how to do that ?? (basically use of CEGUI::MouseCursor class did not lead me to any result...)

I specify that CEGUI is running inside my homegrown rendering engine, not OGRE or whatever...

Thks in advance for any help, please apologize if this question was asked/solved here before (in this case please gimme the link to the thread)

-Nev-

Re: Need help : custom mouse cursor

Posted: Thu Dec 01, 2016 07:48
by YaronCT
I think "CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage" should do the trick.

Re: Need help : custom mouse cursor

Posted: Thu Dec 01, 2016 08:01
by NevilClavain
That's it. It's working now :D . Thk for your help

Switching the topic to "SOLVED"

-Nev-

Re: [Solved] Need help : custom mouse cursor

Posted: Thu Dec 01, 2016 08:06
by Ident
Just one question: What is the "official CEGUI"?

I'm posting here because I did'nt get answers on the official CEGUI about my current topic

Re: [Solved] Need help : custom mouse cursor

Posted: Thu Dec 01, 2016 09:32
by NevilClavain
Ident wrote:Just one question: What is the "official CEGUI"?

I'm posting here because I did'nt get answers on the official CEGUI about my current topic


I just meant "Official CEGUI wiki" : http://cegui.org.uk/wiki/

Re: [Solved] Need help : custom mouse cursor

Posted: Wed Dec 07, 2016 20:37
by YaronCT
If you're interested, feel free to share with us about the project u work on (in the dedicated forum).

Re: [Solved] Need help : custom mouse cursor

Posted: Thu Dec 08, 2016 15:10
by NevilClavain
Hey thanks, I'll post it in a few in this dedicated forum :D