Mercurial > repos > blastem
diff controller_info.c @ 2526:9c6f53425140
Fix SDL version guard for paddle buttons
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 11 Nov 2024 10:45:14 -0800 |
parents | e836cf11783b |
children | 8675663d4984 |
line wrap: on
line diff
--- 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];