SDL: Fix build on SDL 2.0.12

This commit is contained in:
Vicki Pfau 2024-04-03 04:57:19 -07:00
parent 8907131244
commit ee1a860ac4
1 changed files with 6 additions and 0 deletions

View File

@ -920,12 +920,14 @@ static const char* const buttonNamesXboxOne[SDL_CONTROLLER_BUTTON_MAX] = {
[SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS",
[SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "LB",
[SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB",
#if SDL_VERSION_ATLEAST(2, 0, 14)
[SDL_CONTROLLER_BUTTON_MISC1] = "Share",
[SDL_CONTROLLER_BUTTON_PADDLE1] = "P1",
[SDL_CONTROLLER_BUTTON_PADDLE2] = "P2",
[SDL_CONTROLLER_BUTTON_PADDLE3] = "P3",
[SDL_CONTROLLER_BUTTON_PADDLE4] = "P4",
[SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch",
#endif
};
static const char* const buttonNamesPlayStation[SDL_CONTROLLER_BUTTON_MAX] = {
@ -940,12 +942,14 @@ static const char* const buttonNamesPlayStation[SDL_CONTROLLER_BUTTON_MAX] = {
[SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "R3",
[SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "L1",
[SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "R1",
#if SDL_VERSION_ATLEAST(2, 0, 14)
[SDL_CONTROLLER_BUTTON_MISC1] = "Misc",
[SDL_CONTROLLER_BUTTON_PADDLE1] = "P1",
[SDL_CONTROLLER_BUTTON_PADDLE2] = "P2",
[SDL_CONTROLLER_BUTTON_PADDLE3] = "P3",
[SDL_CONTROLLER_BUTTON_PADDLE4] = "P4",
[SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch",
#endif
};
static const char* const buttonNamesNintedo[SDL_CONTROLLER_BUTTON_MAX] = {
@ -960,12 +964,14 @@ static const char* const buttonNamesNintedo[SDL_CONTROLLER_BUTTON_MAX] = {
[SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS",
[SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "L",
[SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "R",
#if SDL_VERSION_ATLEAST(2, 0, 14)
[SDL_CONTROLLER_BUTTON_MISC1] = "Share",
[SDL_CONTROLLER_BUTTON_PADDLE1] = "P1",
[SDL_CONTROLLER_BUTTON_PADDLE2] = "P2",
[SDL_CONTROLLER_BUTTON_PADDLE3] = "P3",
[SDL_CONTROLLER_BUTTON_PADDLE4] = "P4",
[SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch",
#endif
};
static const char* const buttonNamesGeneric[SDL_CONTROLLER_BUTTON_MAX] = {