[Solved] Need help : custom mouse cursor

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

NevilClavain
Just popping in
Just popping in
Posts: 7
Joined: Sat Oct 22, 2016 13:14
Location: Paris, France

[Solved] Need help : custom mouse cursor

Postby NevilClavain » Wed Nov 30, 2016 08:28

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-
Last edited by NevilClavain on Thu Dec 01, 2016 08:06, edited 2 times in total.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Need help : custom mouse cursor

Postby YaronCT » Thu Dec 01, 2016 07:48

I think "CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage" should do the trick.

NevilClavain
Just popping in
Just popping in
Posts: 7
Joined: Sat Oct 22, 2016 13:14
Location: Paris, France

Re: Need help : custom mouse cursor

Postby NevilClavain » Thu Dec 01, 2016 08:01

That's it. It's working now :D . Thk for your help

Switching the topic to "SOLVED"

-Nev-

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Solved] Need help : custom mouse cursor

Postby Ident » Thu Dec 01, 2016 08:06

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
CrazyEddie: "I don't like GUIs"

NevilClavain
Just popping in
Just popping in
Posts: 7
Joined: Sat Oct 22, 2016 13:14
Location: Paris, France

Re: [Solved] Need help : custom mouse cursor

Postby NevilClavain » Thu Dec 01, 2016 09:32

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/

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: [Solved] Need help : custom mouse cursor

Postby YaronCT » Wed Dec 07, 2016 20:37

If you're interested, feel free to share with us about the project u work on (in the dedicated forum).

NevilClavain
Just popping in
Just popping in
Posts: 7
Joined: Sat Oct 22, 2016 13:14
Location: Paris, France

Re: [Solved] Need help : custom mouse cursor

Postby NevilClavain » Thu Dec 08, 2016 15:10

Hey thanks, I'll post it in a few in this dedicated forum :D


Return to “Help”

Who is online

Users browsing this forum: No registered users and 25 guests