ControllerType.cs 681 B

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