src/events/SDL_mouse_c.h
changeset 6950 1ddb72193079
parent 6885 700f1b25f77f
child 7114 02b2fe147478
equal deleted inserted replaced
6949:4de584a3a027 6950:1ddb72193079
    22 
    22 
    23 #ifndef _SDL_mouse_c_h
    23 #ifndef _SDL_mouse_c_h
    24 #define _SDL_mouse_c_h
    24 #define _SDL_mouse_c_h
    25 
    25 
    26 #include "SDL_mouse.h"
    26 #include "SDL_mouse.h"
       
    27 
       
    28 typedef Uint32 SDL_MouseID;
    27 
    29 
    28 struct SDL_Cursor
    30 struct SDL_Cursor
    29 {
    31 {
    30     struct SDL_Cursor *next;
    32     struct SDL_Cursor *next;
    31     void *driverdata;
    33     void *driverdata;
    53 
    55 
    54     /* Set relative mode */
    56     /* Set relative mode */
    55     int (*SetRelativeMouseMode) (SDL_bool enabled);
    57     int (*SetRelativeMouseMode) (SDL_bool enabled);
    56 
    58 
    57     /* Data common to all mice */
    59     /* Data common to all mice */
       
    60     SDL_MouseID mouseID;
    58     SDL_Window *focus;
    61     SDL_Window *focus;
    59     int x;
    62     int x;
    60     int y;
    63     int y;
    61     int xdelta;
    64     int xdelta;
    62     int ydelta;
    65     int ydelta;
    84 
    87 
    85 /* Set the mouse focus window */
    88 /* Set the mouse focus window */
    86 extern void SDL_SetMouseFocus(SDL_Window * window);
    89 extern void SDL_SetMouseFocus(SDL_Window * window);
    87 
    90 
    88 /* Send a mouse motion event */
    91 /* Send a mouse motion event */
    89 extern int SDL_SendMouseMotion(SDL_Window * window, int relative, int x, int y);
    92 extern int SDL_SendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y);
    90 
    93 
    91 /* Send a mouse button event */
    94 /* Send a mouse button event */
    92 extern int SDL_SendMouseButton(SDL_Window * window, Uint8 state, Uint8 button);
    95 extern int SDL_SendMouseButton(SDL_Window * window, SDL_MouseID mouseID, Uint8 state, Uint8 button);
    93 
    96 
    94 /* Send a mouse wheel event */
    97 /* Send a mouse wheel event */
    95 extern int SDL_SendMouseWheel(SDL_Window * window, int x, int y);
    98 extern int SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, int x, int y);
    96 
    99 
    97 /* Shutdown the mouse subsystem */
   100 /* Shutdown the mouse subsystem */
    98 extern void SDL_MouseQuit(void);
   101 extern void SDL_MouseQuit(void);
    99 
   102 
   100 #endif /* _SDL_mouse_c_h */
   103 #endif /* _SDL_mouse_c_h */