comparison src/video/x11/SDL_x11mouse.c @ 3195:08747e24a50f

Mouse events now report the correct window id and window enter/leave events are now reported.
author Bob Pendleton <bob@pendleton.com>
date Thu, 11 Jun 2009 20:08:33 +0000
parents 0deb3e94c251
children f7b03b6838cb
comparison
equal deleted inserted replaced
3194:c18c03927a77 3195:08747e24a50f
49 XAnyClassPtr deviceClass; 49 XAnyClassPtr deviceClass;
50 int event_code; 50 int event_code;
51 XEventClass xEvent; 51 XEventClass xEvent;
52 #endif 52 #endif
53 int num_mice = 0; 53 int num_mice = 0;
54
55 SDL_zero(mouse);
54 56
55 #if SDL_VIDEO_DRIVER_X11_XINPUT 57 #if SDL_VIDEO_DRIVER_X11_XINPUT
56 /* we're getting the list of input devices */ 58 /* we're getting the list of input devices */
57 n = 0; 59 n = 0;
58 if (SDL_X11_HAVE_XINPUT) { 60 if (SDL_X11_HAVE_XINPUT) {