diff src/events/SDL_mouse_c.h @ 2794:f7872b7a8732

Fixed mouse coordinate range on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Nov 2008 21:53:18 +0000
parents 76c2fc9696ea
children 523b10db69f8
line wrap: on
line diff
--- a/src/events/SDL_mouse_c.h	Thu Nov 27 05:29:12 2008 +0000
+++ b/src/events/SDL_mouse_c.h	Thu Nov 27 21:53:18 2008 +0000
@@ -66,8 +66,8 @@
     /* Data common to all mice */
     SDL_WindowID focus;
     int which;
-    int x;
-    int y;
+    int x, x_max;
+    int y, y_max;
     int z;                      /* for future use */
     int xdelta;
     int ydelta;
@@ -112,6 +112,9 @@
 /* Set the mouse focus window */
 extern void SDL_SetMouseFocus(int id, SDL_WindowID windowID);
 
+/* Set the size of the mouse focus window */
+extern void SDL_SetMouseFocusSize(SDL_WindowID windowID, int w, int h);
+
 /* Send a mouse motion event for a mouse */
 extern int SDL_SendMouseMotion(int id, int relative, int x, int y, int z);
 
@@ -128,7 +131,6 @@
 extern void SDL_MouseQuit(void);
 
 /* FIXME: Where do these functions go in this header? */
-extern void SDL_UpdateCoordinates(int x, int y);
 extern void SDL_ChangeEnd(int id, int end);
 
 #endif /* _SDL_mouse_c_h */