comparison src/video/x11/SDL_x11video.c @ 3763:81ea7d9a6624 gsoc2008_manymouse

Proximity events and evil-temporary makefile repair
author Szymon Wilczek <kazeuser@gmail.com>
date Wed, 02 Jul 2008 20:29:29 +0000
parents e0c95ad1ba87
children 2970fcfbdd54
comparison
equal deleted inserted replaced
3762:f667489e7309 3763:81ea7d9a6624
33 XDevice **SDL_XDevices; 33 XDevice **SDL_XDevices;
34 int SDL_NumOfXDevices; 34 int SDL_NumOfXDevices;
35 XEventClass SDL_XEvents[256]; 35 XEventClass SDL_XEvents[256];
36 int SDL_NumOfXEvents; 36 int SDL_NumOfXEvents;
37 int motion, button_pressed, button_released; 37 int motion, button_pressed, button_released;
38 int proximity_in, proximity_out;
38 39
39 /* Initialization/Query functions */ 40 /* Initialization/Query functions */
40 static int X11_VideoInit(_THIS); 41 static int X11_VideoInit(_THIS);
41 static void X11_VideoQuit(_THIS); 42 static void X11_VideoQuit(_THIS);
42 43
275 button_released=c_not_needed; 276 button_released=c_not_needed;
276 } 277 }
277 278
278 /* proximity events */ 279 /* proximity events */
279 ProximityIn(SDL_XDevices[i],c_not_needed,xEvent); 280 ProximityIn(SDL_XDevices[i],c_not_needed,xEvent);
280 if (xEvent) SDL_XEvents[index++] = xEvent; 281 if (xEvent)
282 {
283 SDL_XEvents[index++] = xEvent;
284 proximity_in=c_not_needed;
285 }
281 ProximityOut(SDL_XDevices[i],c_not_needed,xEvent); 286 ProximityOut(SDL_XDevices[i],c_not_needed,xEvent);
282 if (xEvent) SDL_XEvents[index++] = xEvent; 287 if (xEvent)
283 288 {
289 SDL_XEvents[index++] = xEvent;
290 proximity_out=c_not_needed;
291 }
284 /* motion events */ 292 /* motion events */
285 DeviceMotionNotify(SDL_XDevices[i],c_not_needed,xEvent); 293 DeviceMotionNotify(SDL_XDevices[i],c_not_needed,xEvent);
286 if (xEvent) 294 if (xEvent)
287 { 295 {
288 SDL_XEvents[index++] = xEvent; 296 SDL_XEvents[index++] = xEvent;
289 motion=c_not_needed; 297 motion=c_not_needed;
290 //printf("motion: %d", c_not_needed);
291 } 298 }
292 299
293 /* device state */ 300 /* device state */
294 DeviceStateNotify(SDL_XDevices[i],c_not_needed,xEvent); 301 DeviceStateNotify(SDL_XDevices[i],c_not_needed,xEvent);
295 if (xEvent) SDL_XEvents[index++] = xEvent; 302 if (xEvent) SDL_XEvents[index++] = xEvent;