how to get mouse cursor position?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
thelONE
Just popping in
Just popping in
Posts: 3
Joined: Mon Jan 24, 2005 19:10
Contact:

how to get mouse cursor position?

Postby thelONE » Sat Aug 20, 2005 06:43

how to get mouse cursor position on the screen? thanks~

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: how to get mouse cursor position?

Postby lindquist » Sat Aug 20, 2005 12:59

oddly enough this is done with:

Code: Select all

CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleton().getPosition();


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests