2023-04-03 12:14:19 +02:00
|
|
|
using Ryujinx.Common.Utilities;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2020-05-03 04:00:53 +02:00
|
|
|
namespace Ryujinx.Common.Configuration.Hid
|
|
|
|
{
|
|
|
|
// This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical
|
2023-04-03 12:14:19 +02:00
|
|
|
[JsonConverter(typeof(TypedStringEnumConverter<PlayerIndex>))]
|
2020-05-03 04:00:53 +02: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
|
|
|
|
}
|
|
|
|
}
|