diff src/events/SDL_mouse.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 64f346a83ed3
children 2970fcfbdd54
line wrap: on
line diff
--- a/src/events/SDL_mouse.c	Wed Jul 02 20:20:51 2008 +0000
+++ b/src/events/SDL_mouse.c	Wed Jul 02 20:29:29 2008 +0000
@@ -319,6 +319,24 @@
 }
 
 int
+SDL_SendProximity(int id, int x, int y, int type)
+{
+    int index=SDL_GetIndexById(id);
+    int posted=0;
+    if(SDL_ProcessEvents[type]==SDL_ENABLE)
+    {
+        SDL_Event event;
+        event.proximity.which=index;
+        event.proximity.x=x;
+        event.proximity.y=y;
+        event.type=type;
+        event.proximity.type=type;
+        posted = (SDL_PushEvent(&event) > 0);
+    }
+    return posted;
+}
+
+int
 SDL_SendMouseMotion(int id, int relative, int x, int y,int z)
 {
     int index=SDL_GetIndexById(id);