Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1236:ed252764287a | 1237:a8068adf156b |
---|---|
382 } | 382 } |
383 | 383 |
384 /* Mouse motion ? */ | 384 /* Mouse motion ? */ |
385 if ((prevmousex!=mx) || (prevmousey!=my)) { | 385 if ((prevmousex!=mx) || (prevmousey!=my)) { |
386 if (GEM_mouse_relative) { | 386 if (GEM_mouse_relative) { |
387 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); | 387 if ((SDL_AtariXbios_mousex!=0) || (SDL_AtariXbios_mousey!=0)) { |
388 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; | 388 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); |
389 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; | |
390 } | |
389 } else { | 391 } else { |
390 int posx, posy; | 392 int posx, posy; |
391 | 393 |
392 /* Give mouse position relative to window position */ | 394 /* Give mouse position relative to window position */ |
393 posx = mx - x2; | 395 posx = mx - x2; |