SDL: Really fix the build this time

This commit is contained in:
Vicki Pfau 2024-04-03 04:59:04 -07:00
parent ee1a860ac4
commit b5a2f62c88
1 changed files with 4 additions and 0 deletions

View File

@ -899,12 +899,14 @@ static const char* const buttonNamesXbox360[SDL_CONTROLLER_BUTTON_MAX] = {
[SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS", [SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS",
[SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "LB", [SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "LB",
[SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB", [SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB",
#if SDL_VERSION_ATLEAST(2, 0, 14)
[SDL_CONTROLLER_BUTTON_MISC1] = "Misc", [SDL_CONTROLLER_BUTTON_MISC1] = "Misc",
[SDL_CONTROLLER_BUTTON_PADDLE1] = "P1", [SDL_CONTROLLER_BUTTON_PADDLE1] = "P1",
[SDL_CONTROLLER_BUTTON_PADDLE2] = "P2", [SDL_CONTROLLER_BUTTON_PADDLE2] = "P2",
[SDL_CONTROLLER_BUTTON_PADDLE3] = "P3", [SDL_CONTROLLER_BUTTON_PADDLE3] = "P3",
[SDL_CONTROLLER_BUTTON_PADDLE4] = "P4", [SDL_CONTROLLER_BUTTON_PADDLE4] = "P4",
[SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch", [SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch",
#endif
}; };
#if SDL_VERSION_ATLEAST(2, 0, 12) #if SDL_VERSION_ATLEAST(2, 0, 12)
@ -986,12 +988,14 @@ static const char* const buttonNamesGeneric[SDL_CONTROLLER_BUTTON_MAX] = {
[SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS", [SDL_CONTROLLER_BUTTON_RIGHTSTICK] = "RS",
[SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "LB", [SDL_CONTROLLER_BUTTON_LEFTSHOULDER] = "LB",
[SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB", [SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB",
#if SDL_VERSION_ATLEAST(2, 0, 14)
[SDL_CONTROLLER_BUTTON_MISC1] = "Misc", [SDL_CONTROLLER_BUTTON_MISC1] = "Misc",
[SDL_CONTROLLER_BUTTON_PADDLE1] = "P1", [SDL_CONTROLLER_BUTTON_PADDLE1] = "P1",
[SDL_CONTROLLER_BUTTON_PADDLE2] = "P2", [SDL_CONTROLLER_BUTTON_PADDLE2] = "P2",
[SDL_CONTROLLER_BUTTON_PADDLE3] = "P3", [SDL_CONTROLLER_BUTTON_PADDLE3] = "P3",
[SDL_CONTROLLER_BUTTON_PADDLE4] = "P4", [SDL_CONTROLLER_BUTTON_PADDLE4] = "P4",
[SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch", [SDL_CONTROLLER_BUTTON_TOUCHPAD] = "Touch",
#endif
}; };
#endif #endif