[SDL] Overriding video mode selection of SDL_SetVideoMode

Torsten Giebl wizard at syntheticsw.com
Sat Aug 12 00:25:48 PDT 2006


Hello !


> I'm not sure whether using a shadow surface would constrain the mouse
> cursor to stay within the display window, which is something I also need.
> It would be nice to use SDL's built-in mouse constraining
> feature rather than re-invent the wheel.


You can use it, just set after every mouse move event the
Mouse Cursor to the center of your window. To get for example
a movement like in DOOM. You should turn the Mouse Cursor Sprite
off.



CU





More information about the SDL mailing list