mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
c9bc4eaf58
* Fix missing string enum converters for the config * Revert changing KeyboardHotkeys to struct This needs to be done because Avalonia's TwoWay Binding breaks otherwise.
58 lines
No EOL
1,016 B
C#
58 lines
No EOL
1,016 B
C#
using Ryujinx.Common.Utilities;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Common.Configuration.Hid.Controller
|
|
{
|
|
[JsonConverter(typeof(TypedStringEnumConverter<GamepadInputId>))]
|
|
public enum GamepadInputId : byte
|
|
{
|
|
Unbound,
|
|
A,
|
|
B,
|
|
X,
|
|
Y,
|
|
LeftStick,
|
|
RightStick,
|
|
LeftShoulder,
|
|
RightShoulder,
|
|
|
|
// Likely axis
|
|
LeftTrigger,
|
|
// Likely axis
|
|
RightTrigger,
|
|
|
|
DpadUp,
|
|
DpadDown,
|
|
DpadLeft,
|
|
DpadRight,
|
|
|
|
// Special buttons
|
|
|
|
Minus,
|
|
Plus,
|
|
|
|
Back = Minus,
|
|
Start = Plus,
|
|
|
|
Guide,
|
|
Misc1,
|
|
|
|
// Xbox Elite paddle
|
|
Paddle1,
|
|
Paddle2,
|
|
Paddle3,
|
|
Paddle4,
|
|
|
|
// PS5 touchpad button
|
|
Touchpad,
|
|
|
|
// Virtual buttons for single joycon
|
|
SingleLeftTrigger0,
|
|
SingleRightTrigger0,
|
|
|
|
SingleLeftTrigger1,
|
|
SingleRightTrigger1,
|
|
|
|
Count
|
|
}
|
|
} |