mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-11 06:49:15 +00:00
Fix macOS Caps Lock rebinding by buffering one-shot key-down events during keyboard assignment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user