[Solved] How to hide cursor in CEGUI 0.8.3

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

superpws
Just popping in
Just popping in
Posts: 9
Joined: Sun Mar 23, 2014 11:17

[Solved] How to hide cursor in CEGUI 0.8.3

Postby superpws » Sun Mar 23, 2014 11:27

I want to hide the cursor so I searched the forum/google to know how to do so. All links points to

Code: Select all

CEGUI::MouseCursor::getSingleton().hide();

but getSingleton() isn't the member of CEGUI::MouseCursor anymore, so how do I hide the cursor now? I tried

Code: Select all

CEGUI::MouseCursor cursor;
cursor.hide();

but it didn't work (as expected since we won't get current cursor pointer with that).

Thank you.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: How to hide cursor in CEGUI 0.8.3

Postby Kulik » Sun Mar 23, 2014 14:33

Hi,
get your cursor from your GUIContext.

Code: Select all

System::getSigleton().getDefaultGUIContext().getMouseCursor();

superpws
Just popping in
Just popping in
Posts: 9
Joined: Sun Mar 23, 2014 11:17

Re: How to hide cursor in CEGUI 0.8.3

Postby superpws » Sun Mar 23, 2014 15:33

Thanks, it works!

Code: Select all

CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().hide();

It would be helpful to others who might look for it :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests