Fix Dual Joy-Con driver and InputView

This commit is contained in:
LotP
2026-04-21 16:25:33 -05:00
committed by KeatonTheBot
parent 251b65771a
commit 77c947eb88
4 changed files with 160 additions and 58 deletions
+10
View File
@@ -396,5 +396,15 @@ namespace Ryujinx.Input.SDL3
return SDL_GetGamepadButton(_gamepadHandle, button);
}
public static bool IsJoyCon(SDL_JoystickID gamepadsId)
{
return SDL_GetGamepadNameForID(gamepadsId) is LeftName or RightName;
}
public static bool IsLeftJoyCon(SDL_JoystickID gamepadsId)
{
return SDL_GetGamepadNameForID(gamepadsId) is LeftName;
}
}
}