[SDL] Locking Mouse

Vasileiou Nikolaos nbasili at ceid.upatras.gr
Tue Aug 21 03:11:01 PDT 2001

I would like to ask if there is any way to lock the mouse pointer to a
specific position inside the SDL window.

One solution would be to Wrap the mouse to the position each frame, but if
the frame rate is low (e.g. with OpenGL) then the mouse cursor moves
during the subsequent calls of the wrap function.

Thanks in advance

More information about the SDL mailing list