comparison src/video/x11/SDL_x11events.c @ 2993:2fad80c77c17

Technically more correct
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2009 19:26:50 +0000
parents dbff5769d742
children e4f025078c1c
comparison
equal deleted inserted replaced
2992:dbff5769d742 2993:2fad80c77c17
292 switch (xevent.type) { 292 switch (xevent.type) {
293 case MotionNotify: 293 case MotionNotify:
294 #ifdef DEBUG_MOTION 294 #ifdef DEBUG_MOTION
295 printf("X11 motion: %d,%d\n", xevent.xmotion.x, xevent.xmotion.y); 295 printf("X11 motion: %d,%d\n", xevent.xmotion.x, xevent.xmotion.y);
296 #endif 296 #endif
297 SDL_SendMouseMotion(0, 0, xevent.xmotion.x, xevent.xmotion.y, 0); 297 SDL_SendMouseMotion(mouse->id, 0, xevent.xmotion.x, xevent.xmotion.y, 0);
298 break; 298 break;
299 299
300 case ButtonPress: 300 case ButtonPress:
301 SDL_SendMouseButton(0, SDL_PRESSED, xevent.xbutton.button); 301 SDL_SendMouseButton(mouse->id, SDL_PRESSED, xevent.xbutton.button);
302 break; 302 break;
303 303
304 case ButtonRelease: 304 case ButtonRelease:
305 SDL_SendMouseButton(0, SDL_RELEASED, xevent.xbutton.button); 305 SDL_SendMouseButton(mouse->id, SDL_RELEASED, xevent.xbutton.button);
306 break; 306 break;
307 } 307 }
308 continue; 308 continue;
309 } 309 }
310 310