diff src/video/x11/SDL_x11events.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_x11events.c	Wed Jul 02 20:20:51 2008 +0000
+++ b/src/video/x11/SDL_x11events.c	Wed Jul 02 20:29:29 2008 +0000
@@ -35,6 +35,9 @@
 extern int motion;
 extern int button_pressed;
 extern int button_released;
+extern int proximity_in;
+extern int proximity_out;
+
 
 static void
 X11_DispatchEvent(_THIS)
@@ -315,6 +318,16 @@
                 SDL_SendMouseButton(released->deviceid, SDL_RELEASED,
                                 released->button);
             }
+            else if(xevent.type==proximity_in)
+            {
+                XProximityNotifyEvent* proximity = (XProximityNotifyEvent*)&xevent;
+                SDL_SendProximity(proximity->deviceid, proximity->x, proximity->y,SDL_PROXIMITYIN);
+            }
+            else if(xevent.type==proximity_out)
+            {
+                XProximityNotifyEvent* proximity = (XProximityNotifyEvent*)&xevent;
+                SDL_SendProximity(proximity->deviceid, proximity->x, proximity->y,SDL_PROXIMITYOUT);
+            }
             else
             {
 #ifdef DEBUG_XEVENTS