diff options
| author | JosJuice <josjuice@gmail.com> | 2026-09-03 21:28:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-03 21:28:31 +0200 |
| commit | ca8c6ee45e419296226e4da8c2b2adaaf54e0299 (patch) | |
| tree | 1fafc32ef6e4471ca314c860b55e91d76f99b184 /Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp | |
| parent | 5ff90a0471d7ac6905290c508559db1c4da5193f (diff) | |
| parent | b572e4ca5a74481fad0bd14e4c5f9719945d61d8 (diff) | |
Merge pull request #14830 from JoshuaVandaele/sdl-miscs
SDLGamepad: Add Misc 2 through 6
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp index 682e24c28a..babe433fc1 100644 --- a/Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDLGamepad.cpp @@ -333,6 +333,9 @@ bool Gamepad::Button::IsMatchingName(std::string_view name) const return true; // Match the old "Button 0"-like names. + if (m_binding.output_type == SDL_GAMEPAD_BINDTYPE_BUTTON) + return name == GetLegacyButtonName(m_binding.output.button); + switch (m_binding.input_type) { case SDL_GAMEPAD_BINDTYPE_BUTTON: |
