Fix macOS Caps Lock rebinding by buffering one-shot key-down events during keyboard assignment

This commit is contained in:
Babib3l
2026-03-24 22:45:37 +01:00
parent c1845aac4d
commit d3f6460fdf
4 changed files with 104 additions and 16 deletions

View File

@@ -44,5 +44,16 @@ namespace Ryujinx.Input
return new KeyboardStateSnapshot(_keyState);
}
/// <summary>
/// Try to consume a recently pressed key.
/// </summary>
/// <param name="key">The pressed key, if available.</param>
/// <returns>True if a key press was consumed.</returns>
bool TryConsumePressedKey(out Key key)
{
key = Key.Unknown;
return false;
}
}
}