src/events/SDL_mouse_c.h
changeset 6950 1ddb72193079
parent 6885 700f1b25f77f
child 7114 02b2fe147478
     1.1 --- a/src/events/SDL_mouse_c.h	Sat Mar 02 17:51:32 2013 -0800
     1.2 +++ b/src/events/SDL_mouse_c.h	Sat Mar 02 20:44:16 2013 -0800
     1.3 @@ -25,6 +25,8 @@
     1.4  
     1.5  #include "SDL_mouse.h"
     1.6  
     1.7 +typedef Uint32 SDL_MouseID;
     1.8 +
     1.9  struct SDL_Cursor
    1.10  {
    1.11      struct SDL_Cursor *next;
    1.12 @@ -55,6 +57,7 @@
    1.13      int (*SetRelativeMouseMode) (SDL_bool enabled);
    1.14  
    1.15      /* Data common to all mice */
    1.16 +    SDL_MouseID mouseID;
    1.17      SDL_Window *focus;
    1.18      int x;
    1.19      int y;
    1.20 @@ -86,13 +89,13 @@
    1.21  extern void SDL_SetMouseFocus(SDL_Window * window);
    1.22  
    1.23  /* Send a mouse motion event */
    1.24 -extern int SDL_SendMouseMotion(SDL_Window * window, int relative, int x, int y);
    1.25 +extern int SDL_SendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y);
    1.26  
    1.27  /* Send a mouse button event */
    1.28 -extern int SDL_SendMouseButton(SDL_Window * window, Uint8 state, Uint8 button);
    1.29 +extern int SDL_SendMouseButton(SDL_Window * window, SDL_MouseID mouseID, Uint8 state, Uint8 button);
    1.30  
    1.31  /* Send a mouse wheel event */
    1.32 -extern int SDL_SendMouseWheel(SDL_Window * window, int x, int y);
    1.33 +extern int SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y);
    1.34  
    1.35  /* Shutdown the mouse subsystem */
    1.36  extern void SDL_MouseQuit(void);