injectMousePosition returning false

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

MacMan45
Just popping in
Just popping in
Posts: 19
Joined: Mon Apr 24, 2006 10:33

injectMousePosition returning false

Postby MacMan45 » Tue Apr 25, 2006 00:33

I'm trying to inject the mouse position into CE & the method "injectMousePosition" returns false constantly. As such the mouse cursor has disapeared (without calling this function, the cursor shows in the centre of the screen)

I have checked the values i give it, they are in pixel coordinates as they are meant to be, i just can't figure out why its failing.

For the record I'm using Ogre (latest SDK with the included CEGUI) on windows & I'm using SDL for input.

I have logged the mouse position at each frame & it is indeed updating & is withing the window as pixel coordinates.

Even when i inject a hardcoded pixel value, the cursor still refuses to show.

MacMan45
Just popping in
Just popping in
Posts: 19
Joined: Mon Apr 24, 2006 10:33

Postby MacMan45 » Tue Apr 25, 2006 01:10

ok, a little strange, but i have found a hack work around for now...

CEGUI::System::getSingleton().injectMousePosition(x,y);
CEGUI::MouseCursor::getSingleton().setImage("TaharezLook", "MouseArrow");

Setting the image every frame after the move seems to work as far as showing the mouse moving around.

I would ofcourse rather do it right :p so if anyone has any ideas, i'm still very much interested!

User avatar
snipexv
Just popping in
Just popping in
Posts: 1
Joined: Thu Sep 08, 2005 15:15
Contact:

Postby snipexv » Tue Jun 06, 2006 14:48

I am also having this problem. Have you made any more progress with it?

MacMan45
Just popping in
Just popping in
Posts: 19
Joined: Mon Apr 24, 2006 10:33

Postby MacMan45 » Sat Jul 01, 2006 12:47

Since i got that hack working i havn't looked into it anymore, sorry


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests