diff options
author | 2023-01-14 07:28:01 +1100 | |
---|---|---|
committer | 2023-01-14 07:28:01 +1100 | |
commit | 285a52e9a24d025e6352588ef2b7fef9156ad81d (patch) | |
tree | 261587edd052de4a088fa5379d8de26a20b1472e /src/osd/modules/input/input_sdl.cpp | |
parent | 5c4dcb3016556f4d50aae07ff00ac662a7ebea37 (diff) |
Hopefully fix SDL version detection macros for controller types.
Diffstat (limited to 'src/osd/modules/input/input_sdl.cpp')
-rw-r--r-- | src/osd/modules/input/input_sdl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osd/modules/input/input_sdl.cpp b/src/osd/modules/input/input_sdl.cpp index 11b80bbd191..b54af499dbb 100644 --- a/src/osd/modules/input/input_sdl.cpp +++ b/src/osd/modules/input/input_sdl.cpp @@ -1198,19 +1198,23 @@ public: buttonnames = CONTROLLER_BUTTON_SWITCH; digitaltriggers = true; break; -#if SDL_VERSION_ATLEAST(2, 0, 14) // TODO: support more controller types +#if SDL_VERSION_ATLEAST(2, 0, 14) //case SDL_CONTROLLER_TYPE_VIRTUAL: case SDL_CONTROLLER_TYPE_PS5: osd_printf_verbose("Game Controller: ... PlayStation 5 type\n"); axisnames = CONTROLLER_AXIS_PS; buttonnames = CONTROLLER_BUTTON_PS5; break; +#endif +#if SDL_VERSION_ATLEAST(2, 0, 16) //case SDL_CONTROLLER_TYPE_AMAZON_LUNA: case SDL_CONTROLLER_TYPE_GOOGLE_STADIA: osd_printf_verbose("Game Controller: ... Google Stadia type\n"); axisnames = CONTROLLER_AXIS_PS; buttonnames = CONTROLLER_BUTTON_STADIA; break; +#endif +#if SDL_VERSION_ATLEAST(2, 24, 0) //case SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT: //case SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT: case SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR: |