ControllerType.cs
1 using Ryujinx.Common.Utilities; 2 using System; 3 using System.Text.Json.Serialization; 4 5 namespace Ryujinx.Common.Configuration.Hid 6 { 7 // This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical 8 [Flags] 9 [JsonConverter(typeof(TypedStringEnumConverter<ControllerType>))] 10 public enum ControllerType 11 { 12 None, 13 ProController = 1 << 0, 14 Handheld = 1 << 1, 15 JoyconPair = 1 << 2, 16 JoyconLeft = 1 << 3, 17 JoyconRight = 1 << 4, 18 Invalid = 1 << 5, 19 Pokeball = 1 << 6, 20 SystemExternal = 1 << 29, 21 System = 1 << 30, 22 } 23 }