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.
injectMousePosition returning false
Moderators: CEGUI MVP, CEGUI Team
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!
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!
Who is online
Users browsing this forum: Google [Bot] and 5 guests