src/joystick/hidapi/SDL_hidapijoystick_c.h
changeset 13348 448528dc13da
parent 13330 c88765bcf1da
child 13354 8c22865bd138
equal deleted inserted replaced
13347:99ecd178999f 13348:448528dc13da
    41 #ifdef __MACOSX__
    41 #ifdef __MACOSX__
    42 /* On Mac OS X, Xbox One controllers are handled by the Xbox 360 driver */
    42 /* On Mac OS X, Xbox One controllers are handled by the Xbox 360 driver */
    43 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
    43 #undef SDL_JOYSTICK_HIDAPI_XBOXONE
    44 #endif
    44 #endif
    45 
    45 
       
    46 /* Prevent rumble duration overflow */
       
    47 #define SDL_MAX_RUMBLE_DURATION_MS  0x0fffffff
       
    48 
    46 typedef struct _SDL_HIDAPI_DeviceDriver
    49 typedef struct _SDL_HIDAPI_DeviceDriver
    47 {
    50 {
    48     const char *hint;
    51     const char *hint;
    49     SDL_bool enabled;
    52     SDL_bool enabled;
    50     SDL_bool (*IsSupportedDevice)(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, const char *name);
    53     SDL_bool (*IsSupportedDevice)(Uint16 vendor_id, Uint16 product_id, Uint16 version, int interface_number, const char *name);