Captain_Deathbeard
05-08-2008 15:09:39
I have created a button, but when I click on it, when the mouse button is released the pointer teleports to somewhere in the middle of the screen, and the button event is not fired.
When I move the mouse afterwards, the pointer teleports back to where it was before and moves as normal.
I set the mouse position with absolute coordinates myself (these are abs coordinates from OIS, but adjusted for mouse speed).
->injectMouseMove(key.mPosAbs.x, key.mPosAbs.y, e.state.Z.abs);
if I copy the demo and do:
->injectMouseMove(e);
then it works fine (but then mouse is too slow and I have no control of starting position).
When I move the mouse afterwards, the pointer teleports back to where it was before and moves as normal.
I set the mouse position with absolute coordinates myself (these are abs coordinates from OIS, but adjusted for mouse speed).
->injectMouseMove(key.mPosAbs.x, key.mPosAbs.y, e.state.Z.abs);
if I copy the demo and do:
->injectMouseMove(e);
then it works fine (but then mouse is too slow and I have no control of starting position).