mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 01:38:27 +00:00
Added 4 auxiliary buttons to the game controller API
Xbox Elite controllers use AUX1-AUX4 to represent the paddle buttons when using the HIDAPI driver PS4 and PS5 controllers use AUX1 to represent the touchpad button Nintendo Switch Pro controllers use AUX1 to represent the capture button
This commit is contained in:
parent
a22beef402
commit
3a3aaac221
16 changed files with 299 additions and 223 deletions
|
@ -363,6 +363,10 @@ typedef enum
|
|||
SDL_CONTROLLER_BUTTON_DPAD_DOWN,
|
||||
SDL_CONTROLLER_BUTTON_DPAD_LEFT,
|
||||
SDL_CONTROLLER_BUTTON_DPAD_RIGHT,
|
||||
SDL_CONTROLLER_BUTTON_AUX1, // Xbox Elite paddle, Nintendo Switch Pro capture button
|
||||
SDL_CONTROLLER_BUTTON_AUX2, // Xbox Elite paddle
|
||||
SDL_CONTROLLER_BUTTON_AUX3, // Xbox Elite paddle
|
||||
SDL_CONTROLLER_BUTTON_AUX4, // Xbox Elite paddle
|
||||
SDL_CONTROLLER_BUTTON_MAX
|
||||
} SDL_GameControllerButton;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue