Disconnect mouse cursor from interrupts / mouse driver |
Naith
|
I tried to use the function SDL_WarpMouseInWindow and moved my mouse pointer in a direction, over time, and I couldn't interrupt it's "path" by moving my mouse.
|
|||||||||||
|
dirichs
|
That right, as long as SDL_WarpMouse is called continuously, any
mouse movements by the user do not visibly change the mouse cursor position. But as soon as there is a pause in these WarpMouse commands, the mouse can be moved somewhere else. The screen instructions I am working on are often like Move mouse to a certain screen area Explain Move mouse to another screen area Explain Simulate a mouse click within the second area So there are pauses between the forced mouse movements during which I would like to suppress any movements caused by the user. If this is not possible, I now see another alternative: Run WarpMouse commands continuously in a separate thread. This is a solution that I have not thought of before, so thanks a lot for your answer. |
|||||||||||
|