src/joystick/SDL_sysjoystick.h
changeset 10966 a8f6d07da15a
parent 10855 fc18eb831c08
child 11663 0d96acbd34f0
equal deleted inserted replaced
10965:dc566389a248 10966:a8f6d07da15a
    66     SDL_bool force_recentering; /* SDL_TRUE if this device needs to have its state reset to 0 */
    66     SDL_bool force_recentering; /* SDL_TRUE if this device needs to have its state reset to 0 */
    67     SDL_JoystickPowerLevel epowerlevel; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */
    67     SDL_JoystickPowerLevel epowerlevel; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */
    68     struct _SDL_Joystick *next; /* pointer to next joystick we have allocated */
    68     struct _SDL_Joystick *next; /* pointer to next joystick we have allocated */
    69 };
    69 };
    70 
    70 
       
    71 /* Macro to combine a USB vendor ID and product ID into a single Uint32 value */
       
    72 #define MAKE_VIDPID(VID, PID)   (((Uint32)(VID))<<16|(PID))
       
    73 
    71 /* Function to scan the system for joysticks.
    74 /* Function to scan the system for joysticks.
    72  * Joystick 0 should be the system default joystick.
    75  * Joystick 0 should be the system default joystick.
    73  * This function should return the number of available joysticks, or -1
    76  * This function should return the number of available joysticks, or -1
    74  * on an unrecoverable fatal error.
    77  * on an unrecoverable fatal error.
    75  */
    78  */