Mercurial > sdl-ios-xcode
diff src/video/gem/SDL_gemevents.c @ 1237:a8068adf156b
Disable XBIOS driver for mouse and joystick under MiNT. Will write a driver for /dev/mouse later.
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Fri, 06 Jan 2006 22:24:09 +0000 |
parents | 8ef3e7e92a91 |
children | fdc7ef6ecab4 |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c Fri Jan 06 20:57:59 2006 +0000 +++ b/src/video/gem/SDL_gemevents.c Fri Jan 06 22:24:09 2006 +0000 @@ -384,8 +384,10 @@ /* Mouse motion ? */ if ((prevmousex!=mx) || (prevmousey!=my)) { if (GEM_mouse_relative) { - SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); - SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; + if ((SDL_AtariXbios_mousex!=0) || (SDL_AtariXbios_mousey!=0)) { + SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); + SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; + } } else { int posx, posy;