PlayerIndex.cs 609 B

12345678910111213141516171819202122
  1. using Ryujinx.Common.Utilities;
  2. using System.Text.Json.Serialization;
  3. namespace Ryujinx.Common.Configuration.Hid
  4. {
  5. // This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical
  6. [JsonConverter(typeof(TypedStringEnumConverter<PlayerIndex>))]
  7. public enum PlayerIndex : int
  8. {
  9. Player1 = 0,
  10. Player2 = 1,
  11. Player3 = 2,
  12. Player4 = 3,
  13. Player5 = 4,
  14. Player6 = 5,
  15. Player7 = 6,
  16. Player8 = 7,
  17. Handheld = 8,
  18. Unknown = 9,
  19. Auto = 10 // Shouldn't be used directly
  20. }
  21. }