diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index cd34a7781..08a369c73 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -899,12 +899,14 @@ static const char* const buttonNamesXbox360[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] = "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 }; #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_LEFTSHOULDER] = "LB", [SDL_CONTROLLER_BUTTON_RIGHTSHOULDER] = "RB", +#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 }; #endif