src/events/SDL_mouse_c.h
branchgsoc2008_manymouse
changeset 3760 64f346a83ed3
parent 2152 003c1b5b07da
child 3764 2970fcfbdd54
     1.1 --- a/src/events/SDL_mouse_c.h	Fri Jun 06 14:50:56 2008 +0000
     1.2 +++ b/src/events/SDL_mouse_c.h	Fri Jun 06 15:23:29 2008 +0000
     1.3 @@ -58,10 +58,13 @@
     1.4  
     1.5      /* Data common to all mice */
     1.6      SDL_WindowID focus;
     1.7 +    int which;
     1.8      int x;
     1.9      int y;
    1.10 +    int z;
    1.11      int xdelta;
    1.12      int ydelta;
    1.13 +    char* name;
    1.14      Uint8 buttonstate;
    1.15      SDL_bool relative_mode;
    1.16      SDL_bool flush_motion;
    1.17 @@ -84,7 +87,7 @@
    1.18  /* Add a mouse, possibly reattaching at a particular index (or -1),
    1.19     returning the index of the mouse, or -1 if there was an error.
    1.20   */
    1.21 -extern int SDL_AddMouse(const SDL_Mouse * mouse, int index);
    1.22 +extern int SDL_AddMouse(const SDL_Mouse * mouse, int index, char* name);
    1.23  
    1.24  /* Remove a mouse at an index, clearing the slot for later */
    1.25  extern void SDL_DelMouse(int index);
    1.26 @@ -96,7 +99,7 @@
    1.27  extern void SDL_SetMouseFocus(int index, SDL_WindowID windowID);
    1.28  
    1.29  /* Send a mouse motion event for a mouse at an index */
    1.30 -extern int SDL_SendMouseMotion(int index, int relative, int x, int y);
    1.31 +extern int SDL_SendMouseMotion(int index, int relative, int x, int y, int z);
    1.32  
    1.33  /* Send a mouse button event for a mouse at an index */
    1.34  extern int SDL_SendMouseButton(int index, Uint8 state, Uint8 button);
    1.35 @@ -107,6 +110,16 @@
    1.36  /* Shutdown the mouse subsystem */
    1.37  extern void SDL_MouseQuit(void);
    1.38  
    1.39 +extern int SDL_GetIndexById(int id);
    1.40 +
    1.41 +extern void SDL_SetIndexId(int id, int index);
    1.42 +
    1.43 +extern int SDL_GetNumOfMice(void);
    1.44 +
    1.45 +extern char* SDL_GetMouseName(int index);
    1.46 +
    1.47 +
    1.48 +
    1.49  #endif /* _SDL_mouse_c_h */
    1.50  
    1.51  /* vi: set ts=4 sw=4 expandtab: */