mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-26 08:32:55 +00:00
Some checks failed
Canary CI / Release for linux-arm64 (push) Has been cancelled
Canary CI / Release for linux-x64 (push) Has been cancelled
Canary CI / Release for win-x64 (push) Has been cancelled
Canary CI / Release MacOS universal (push) Has been cancelled
Canary CI / Create GitLab Release (push) Has been cancelled
As per the remark XMLdoc on the type: Get rid of this converter if dotnet supports similar functionality out of the box.
21 lines
559 B
C#
21 lines
559 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Common.Configuration.Hid
|
|
{
|
|
// This enum was duplicated from Ryujinx.HLE.HOS.Services.Hid.PlayerIndex and should be kept identical
|
|
[JsonConverter(typeof(JsonStringEnumConverter<PlayerIndex>))]
|
|
public enum PlayerIndex
|
|
{
|
|
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
|
|
}
|
|
}
|