lmx13
03-06-2011 19:11:00
Hi there!
Would be kind if you explain me how to deal with the followin situation (hope you understand, i kno my english sux)
Yeah, i did search the forums, but i did not find something specific to my problem. most ppl are just okay with the mouse trapped into the game window.
Would be kind if you explain me how to deal with the followin situation (hope you understand, i kno my english sux)
Yeah, i did search the forums, but i did not find something specific to my problem. most ppl are just okay with the mouse trapped into the game window.
- I am currently programming a game with python-ogre but i got stuck with the mouse.[/*:m]
- I am using OIS (buffered input) and injecting the events into CEGUI.[/*:m]
- I also used "DISCL_FOREGROUND" and "DISCL_NONEXCLUSIVE" to use the "hardware" cursor (i HATE it when the mouse is slow whenever the framerate drops)[/*:m]
- I am currently only testing with windowed mode.[/*:m]
- I am injecting the mouse position via def mouseMoved (self, evt): self.system.injectMousePosition(evt.get_state().X.abs, evt.get_state().Y.abs) into cegui[/*:m][/list:u]
Problem is:
i can hide/not show the cegui cursor, but i still trails the "real" mouse with a small lag.
but i want the cursor to be REALTIME -.-
What i would really want:
- mosue can leave window with no problem[/*:m]
- mouse is realtime[/*:m]
- mouse looks the way cegui defines inside the window[/*:m][/list:u]
What can i do (is that even possible)?
- mosue can leave window with no problem[/*:m]