mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-11 12:01:30 +00:00
30 lines
No EOL
726 B
C#
30 lines
No EOL
726 B
C#
namespace Ryujinx.Common.Configuration.Hid
|
|
{
|
|
public struct Hotkey
|
|
{
|
|
public Key Key { get; set; }
|
|
public KeyModifier Modifier { get; set; }
|
|
public ulong GamepadInputMask { get; set; }
|
|
|
|
public Hotkey(Key key, KeyModifier modifier, ulong gamepadInputMask)
|
|
{
|
|
Key = key;
|
|
Modifier = modifier;
|
|
GamepadInputMask = gamepadInputMask;
|
|
}
|
|
|
|
public Hotkey(Key key) : this(key, KeyModifier.None, 0UL)
|
|
{
|
|
}
|
|
|
|
public bool HasKeyboard()
|
|
{
|
|
return Key != Key.Unknown && Key != Key.Unbound;
|
|
}
|
|
|
|
public bool HasGamepad()
|
|
{
|
|
return GamepadInputMask != 0UL;
|
|
}
|
|
}
|
|
} |