Page 1 of 1

injectMousePosition returning false

Posted: Tue Apr 25, 2006 00:33
by MacMan45
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.

Posted: Tue Apr 25, 2006 01:10
by MacMan45
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!

Posted: Tue Jun 06, 2006 14:48
by snipexv
I am also having this problem. Have you made any more progress with it?

Posted: Sat Jul 01, 2006 12:47
by MacMan45
Since i got that hack working i havn't looked into it anymore, sorry