Mouse Origin to center of screen

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

dominic1988
Just popping in
Just popping in
Posts: 4
Joined: Mon Mar 17, 2008 15:26

Mouse Origin to center of screen

Postby dominic1988 » Mon Mar 17, 2008 15:37

is there a way to set my mouse origin to center of screen, cause i need it in order to do some calibration for Wii.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Mar 17, 2008 17:39

Hi,

I don't recall anything specific for this purpose, I think you'd have to "pre-process" the mouse location to apply the necessary offsets as the positions enter / leave your application code.

HTH

CE.

dominic1988
Just popping in
Just popping in
Posts: 4
Joined: Mon Mar 17, 2008 15:26

Postby dominic1988 » Tue Mar 18, 2008 02:33

but is it possible to set the mouse origin to the center of screen for CEGUI?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Mar 18, 2008 08:25

It might take two steps to do this: the first one is to set the cursor to the center using the correct 'inject' call. The second might be to get the cursor's offset, and apply that to its position, as explained here: http://www.cegui.org.uk/phpBB2/viewtopi ... ight=mouse

Cause with 'origin' you mean the 'hitpoint', right?

HTH.
Check out my released snake game using Cegui!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests