2023-04-03 10:14:19 +00:00
|
|
|
using Ryujinx.Common.Utilities;
|
2020-05-03 02:00:53 +00:00
|
|
|
using System;
|
2023-04-03 10:14:19 +00:00
|
|
|
using System.Text.Json.Serialization;
|
2020-05-03 02:00:53 +00:00
|
|
|
|
|
|
|
namespace Ryujinx.Common.Configuration.Hid
|
2019-12-21 19:52:31 +00:00
|
|
|
{
|
2023-03-21 23:14:46 +00:00
|
|
|
// This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical
|
2023-04-03 10:14:19 +00:00
|
|
|
[Flags]
|
|
|
|
[JsonConverter(typeof(TypedStringEnumConverter<ControllerType>))]
|
2020-05-03 02:00:53 +00:00
|
|
|
public enum ControllerType : int
|
2019-12-21 19:52:31 +00:00
|
|
|
{
|
2020-05-03 02:00:53 +00:00
|
|
|
None,
|
|
|
|
ProController = 1 << 0,
|
|
|
|
Handheld = 1 << 1,
|
|
|
|
JoyconPair = 1 << 2,
|
|
|
|
JoyconLeft = 1 << 3,
|
|
|
|
JoyconRight = 1 << 4,
|
|
|
|
Invalid = 1 << 5,
|
|
|
|
Pokeball = 1 << 6,
|
|
|
|
SystemExternal = 1 << 29,
|
|
|
|
System = 1 << 30
|
2019-12-21 19:52:31 +00:00
|
|
|
}
|
2020-05-03 02:00:53 +00:00
|
|
|
}
|