mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-11 21:06:22 -05:00
Merge pull request #14830 from JoshuaVandaele/sdl-miscs
SDLGamepad: Add Misc 2 through 6
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -385,7 +385,7 @@ struct SDLMotionAxis
|
||||
};
|
||||
using SDLMotionAxisList = std::array<SDLMotionAxis, 6>;
|
||||
|
||||
static constexpr std::array<const char*, 21> s_sdl_button_names = {
|
||||
static constexpr std::array<const char*, 26> s_sdl_button_names = {
|
||||
"Button S", // SDL_GAMEPAD_BUTTON_SOUTH
|
||||
"Button E", // SDL_GAMEPAD_BUTTON_EAST
|
||||
"Button W", // SDL_GAMEPAD_BUTTON_WEST
|
||||
@@ -407,6 +407,11 @@ static constexpr std::array<const char*, 21> s_sdl_button_names = {
|
||||
"Paddle 3", // SDL_GAMEPAD_BUTTON_RIGHT_PADDLE2
|
||||
"Paddle 4", // SDL_GAMEPAD_BUTTON_LEFT_PADDLE2
|
||||
"Touchpad", // SDL_GAMEPAD_BUTTON_TOUCHPAD
|
||||
"Misc 2", // SDL_GAMEPAD_BUTTON_MISC2
|
||||
"Misc 3", // SDL_GAMEPAD_BUTTON_MISC3
|
||||
"Misc 4", // SDL_GAMEPAD_BUTTON_MISC4
|
||||
"Misc 5", // SDL_GAMEPAD_BUTTON_MISC5
|
||||
"Misc 6" // SDL_GAMEPAD_BUTTON_MISC6
|
||||
};
|
||||
static constexpr std::array<const char*, 6> s_sdl_axis_names = {
|
||||
"Left X", // SDL_GAMEPAD_AXIS_LEFTX
|
||||
|
||||
Reference in New Issue
Block a user