diff src/events/SDL_mouse_c.h @ 3760:64f346a83ed3 gsoc2008_manymouse

http://wilku.ravenlord.ws/doku.php?id=documentation for information how things work. Currently implemented: detecting many pointing devices and pressure detection. Still a bug. Each program has to be comipled with a flag -lXi
author Szymon Wilczek <kazeuser@gmail.com>
date Fri, 06 Jun 2008 15:23:29 +0000
parents 003c1b5b07da
children 2970fcfbdd54
line wrap: on
line diff
--- a/src/events/SDL_mouse_c.h	Fri Jun 06 14:50:56 2008 +0000
+++ b/src/events/SDL_mouse_c.h	Fri Jun 06 15:23:29 2008 +0000
@@ -58,10 +58,13 @@
 
     /* Data common to all mice */
     SDL_WindowID focus;
+    int which;
     int x;
     int y;
+    int z;
     int xdelta;
     int ydelta;
+    char* name;
     Uint8 buttonstate;
     SDL_bool relative_mode;
     SDL_bool flush_motion;
@@ -84,7 +87,7 @@
 /* Add a mouse, possibly reattaching at a particular index (or -1),
    returning the index of the mouse, or -1 if there was an error.
  */
-extern int SDL_AddMouse(const SDL_Mouse * mouse, int index);
+extern int SDL_AddMouse(const SDL_Mouse * mouse, int index, char* name);
 
 /* Remove a mouse at an index, clearing the slot for later */
 extern void SDL_DelMouse(int index);
@@ -96,7 +99,7 @@
 extern void SDL_SetMouseFocus(int index, SDL_WindowID windowID);
 
 /* Send a mouse motion event for a mouse at an index */
-extern int SDL_SendMouseMotion(int index, int relative, int x, int y);
+extern int SDL_SendMouseMotion(int index, int relative, int x, int y, int z);
 
 /* Send a mouse button event for a mouse at an index */
 extern int SDL_SendMouseButton(int index, Uint8 state, Uint8 button);
@@ -107,6 +110,16 @@
 /* Shutdown the mouse subsystem */
 extern void SDL_MouseQuit(void);
 
+extern int SDL_GetIndexById(int id);
+
+extern void SDL_SetIndexId(int id, int index);
+
+extern int SDL_GetNumOfMice(void);
+
+extern char* SDL_GetMouseName(int index);
+
+
+
 #endif /* _SDL_mouse_c_h */
 
 /* vi: set ts=4 sw=4 expandtab: */