This commit is contained in:
madwind
2025-01-11 00:24:53 +08:00
parent 91f70584ec
commit 241b0152ad
14 changed files with 480 additions and 453 deletions

View File

@@ -193,7 +193,7 @@ namespace Ryujinx.Input.SDL3
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static int ToSDL2Scancode(Key key)
private static int ToSDL3Scancode(Key key)
{
if (key >= Key.Unknown && key <= Key.Menu)
{
@@ -235,7 +235,7 @@ namespace Ryujinx.Input.SDL3
for (Key key = 0; key < Key.Count; key++)
{
int index = ToSDL2Scancode(key);
int index = ToSDL3Scancode(key);
if (index == -1)
{
SDL_Keymod modifierMask = GetKeyboardModifierMask(key);