mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix build on SDL 2.0.12
This commit is contained in:
parent
8907131244
commit
ee1a860ac4
|
@ -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] = {
|
||||
|
|
Loading…
Reference in New Issue