Changed the game controller enum types to match SDL naming conventions.

This commit is contained in:
Ryan C. Gordon 2013-02-25 00:56:21 -05:00
parent db73a392c2
commit a5862a96a3
4 changed files with 32 additions and 31 deletions

View file

@ -314,7 +314,7 @@ typedef struct SDL_ControllerAxisEvent
Uint32 type; /**< ::SDL_CONTROLLERAXISMOTION */
Uint32 timestamp;
Uint8 which; /**< The joystick instance id */
SDL_CONTROLLER_AXIS axis; /**< The joystick axis index */
SDL_GameControllerAxis axis; /**< The joystick axis index */
int value; /**< The axis value (range: -32768 to 32767) */
} SDL_ControllerAxisEvent;
@ -327,7 +327,7 @@ typedef struct SDL_ControllerButtonEvent
Uint32 type; /**< ::SDL_CONTROLLERBUTTONDOWN or ::SDL_CONTROLLERBUTTONUP */
Uint32 timestamp;
Uint8 which; /**< The joystick instance id */
SDL_CONTROLLER_BUTTON button; /**< The joystick button index */
SDL_GameControllerButton button; /**< The joystick button index */
Uint8 state; /**< ::SDL_PRESSED or ::SDL_RELEASED */
} SDL_ControllerButtonEvent;