2023-03-21 22:41:19 +00:00
|
|
|
using Ryujinx.Common.Utilities;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2020-05-03 02:00:53 +00:00
|
|
|
namespace Ryujinx.Common.Configuration.Hid
|
|
|
|
{
|
|
|
|
// This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical
|
2023-03-21 22:41:19 +00:00
|
|
|
[JsonConverter(typeof(TypedStringEnumConverter<PlayerIndex>))]
|
2020-05-03 02:00:53 +00:00
|
|
|
public enum PlayerIndex : int
|
|
|
|
{
|
|
|
|
Player1 = 0,
|
|
|
|
Player2 = 1,
|
|
|
|
Player3 = 2,
|
|
|
|
Player4 = 3,
|
|
|
|
Player5 = 4,
|
|
|
|
Player6 = 5,
|
|
|
|
Player7 = 6,
|
|
|
|
Player8 = 7,
|
|
|
|
Handheld = 8,
|
|
|
|
Unknown = 9,
|
|
|
|
Auto = 10 // Shouldn't be used directly
|
|
|
|
}
|
|
|
|
}
|