src/video/x11/SDL_x11mouse.h
changeset 2940 b93965a16fe0
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
equal deleted inserted replaced
2939:084e5b4fc5be 2940:b93965a16fe0
    22 #include "SDL_config.h"
    22 #include "SDL_config.h"
    23 
    23 
    24 #ifndef _SDL_x11mouse_h
    24 #ifndef _SDL_x11mouse_h
    25 #define _SDL_x11mouse_h
    25 #define _SDL_x11mouse_h
    26 
    26 
       
    27 #if SDL_VIDEO_DRIVER_X11_XINPUT
       
    28 typedef struct X11_MouseData
       
    29 {
       
    30     Display *display;
       
    31     XDevice *device;
       
    32     int motion;
       
    33     int button_pressed;
       
    34     int button_released;
       
    35     int proximity_in;
       
    36     int proximity_out;
       
    37     int num_xevents;
       
    38     XEventClass xevents[5];
       
    39 } X11_MouseData;
       
    40 #endif
       
    41 
    27 extern void X11_InitMouse(_THIS);
    42 extern void X11_InitMouse(_THIS);
    28 extern void X11_QuitMouse(_THIS);
    43 extern void X11_QuitMouse(_THIS);
    29 
    44 
    30 #endif /* _SDL_x11mouse_h */
    45 #endif /* _SDL_x11mouse_h */
    31 
    46