Changed the game controller enum types to match SDL naming conventions.
This commit is contained in:
parent
db73a392c2
commit
a5862a96a3
4 changed files with 32 additions and 31 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue