Added an API to get the type of a connected joystick

This commit is contained in:
Sam Lantinga
2017-01-27 05:59:58 -08:00
parent ae5e9a319b
commit 3c90a52aa7
5 changed files with 142 additions and 19 deletions

View File

@@ -62,6 +62,7 @@ struct _SDL_Joystick
int ref_count; /* Reference count for multiple opens */
SDL_bool is_game_controller;
SDL_bool force_recentering; /* SDL_TRUE if this device needs to have its state reset to 0 */
SDL_JoystickPowerLevel epowerlevel; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */
struct _SDL_Joystick *next; /* pointer to next joystick we have allocated */