Hello,
I am developing a game that contains instruction sessions explaining the user interface.
For these instructional parts, I would like to programmatically move the mouse cursor
around to show where to click etc. In SDL, there is the function SDL_WarpMouse, which
allows re-positioning of the mouse. But the user is still allowed to move the mouse by
himself and thus disturb the instruction.
Is it possible to completely disable mouse events triggered by user input? And solely
rely on SDL_WarpMouse to define all movements of the mouse cursor on the screen?
I know that it is always possible to hide the mouse cursor altogether and just move
an image over the screen. Since I would like to demonstrate an already existing game,
this would unfortunately mean a greater restruction of the game architectur just for
this special use case. Thus I would prefer a lean solution that allowed for a complete
"taking over" of the usual mouse cursor by the program.
If this is not possible in SDL (which I suspect), any hints about where to look for the
deeper mechanics would also be greatly appreciated. For now, it would suffice to have
a solution that works under Windows.