Mouse in fullscreen

hi`

if I grab the mouse in fullscreen is the following code still needed
with SDL 1.1.1? It worked for me without the ‘if’ so my question is
whether SDL will handle purging the false relative motion events
internally or it works because I use DGA mouse.

case SDL_MOUSEMOTION:
if ((Event.motion.x != SizeX/2) ||
(Event.motion.y != SizeY/2))
{
MouseMoved = true;
DX += Event.motion.xrel;
DY += Event.motion.yrel;
}
break;–
Daniel Vogel My opinions may have changed,
666 @ http://grafzahl.de but not the fact that I am right

hi`

if I grab the mouse in fullscreen is the following code still needed
with SDL 1.1.1? It worked for me without the ‘if’ so my question is
whether SDL will handle purging the false relative motion events
internally or it works because I use DGA mouse.

case SDL_MOUSEMOTION:
if ((Event.motion.x != SizeX/2) ||
(Event.motion.y != SizeY/2))
{
MouseMoved = true;
DX += Event.motion.xrel;
DY += Event.motion.yrel;
}
break;

As of SDL 1.0.6, SDL purges false relative motion events.

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec