# HG changeset patch # User Michael Pavone # Date 1731350714 28800 # Node ID 9c6f53425140313f517b2d70b9b1a4deb54158fa # Parent 1843adbe989963e2c4114ed6e8c480bb23b81a6c Fix SDL version guard for paddle buttons diff -r 1843adbe9899 -r 9c6f53425140 controller_info.c --- a/controller_info.c Mon Nov 11 10:30:56 2024 -0800 +++ b/controller_info.c Mon Nov 11 10:45:14 2024 -0800 @@ -328,7 +328,7 @@ const char *get_button_label(controller_info *info, int button) { #ifndef USE_FBDEV -#if SDL_VERSION_ATLEAST(2,0,12) +#if SDL_VERSION_ATLEAST(2,0,14) if (info->subtype == SUBTYPE_XBOX_ELITE && button >= SDL_CONTROLLER_BUTTON_PADDLE1 && button <= SDL_CONTROLLER_BUTTON_PADDLE4) { static char const * names[] = {"Paddle 1", "Paddle 2", "Paddle 3", "Paddle 4"}; return names[button - SDL_CONTROLLER_BUTTON_PADDLE1];