comparison src/video/gem/SDL_gemevents.c @ 919:4b1dd7691f05

Absolute mouse position was given as relative movement to SDL
author Patrice Mandin <patmandin@gmail.com>
date Tue, 03 Aug 2004 15:40:18 +0000
parents b8d311d90021
children 7b920743ce57
comparison
equal deleted inserted replaced
918:17822f1f9674 919:4b1dd7691f05
300 if ((prevmousex!=mx) || (prevmousey!=my)) { 300 if ((prevmousex!=mx) || (prevmousey!=my)) {
301 if (GEM_mouse_relative) { 301 if (GEM_mouse_relative) {
302 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); 302 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);
303 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; 303 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0;
304 } else { 304 } else {
305 SDL_PrivateMouseMotion(0, 1, mx, my); 305 SDL_PrivateMouseMotion(0, 0, mx, my);
306 } 306 }
307 prevmousex = mx; 307 prevmousex = mx;
308 prevmousey = my; 308 prevmousey = my;
309 } 309 }
310 310