mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-05 11:59:15 +00:00
Track keyboard labels from host layout events
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
namespace Ryujinx.Common.Configuration.Hid
|
||||
{
|
||||
public static class KeyboardKeyExtensions
|
||||
{
|
||||
public static Key ToKey(this PhysicalKey key)
|
||||
{
|
||||
return key is >= PhysicalKey.Unknown and < PhysicalKey.Count
|
||||
? (Key)(int)key
|
||||
: Key.Unknown;
|
||||
}
|
||||
|
||||
public static PhysicalKey ToPhysicalKey(this Key key)
|
||||
{
|
||||
return key is >= Key.Unknown and < Key.Count
|
||||
? (PhysicalKey)(int)key
|
||||
: PhysicalKey.Unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user