diff 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
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Wed Jul 02 20:20:51 2008 +0000
+++ b/src/video/x11/SDL_x11video.c	Wed Jul 02 20:29:29 2008 +0000
@@ -35,6 +35,7 @@
 XEventClass SDL_XEvents[256];
 int SDL_NumOfXEvents;
 int motion, button_pressed, button_released;
+int proximity_in, proximity_out;
 
 /* Initialization/Query functions */
 static int X11_VideoInit(_THIS);
@@ -277,17 +278,23 @@
 
 	/* proximity events */
 	ProximityIn(SDL_XDevices[i],c_not_needed,xEvent);
-	if (xEvent) SDL_XEvents[index++] = xEvent;
+	if (xEvent)
+    {
+        SDL_XEvents[index++] = xEvent;
+        proximity_in=c_not_needed;
+    }
 	ProximityOut(SDL_XDevices[i],c_not_needed,xEvent);
-	if (xEvent) SDL_XEvents[index++] = xEvent;
-
+	if (xEvent)
+    {
+        SDL_XEvents[index++] = xEvent;
+        proximity_out=c_not_needed;
+    }
 	/* motion events */
 	DeviceMotionNotify(SDL_XDevices[i],c_not_needed,xEvent);
 	if (xEvent) 
     {
         SDL_XEvents[index++] = xEvent;
         motion=c_not_needed;
-        //printf("motion: %d", c_not_needed);
     }
 
 	/* device state */