mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-01 19:51:08 +00:00
As per the remark XMLdoc on the type: Get rid of this converter if dotnet supports similar functionality out of the box.
22 lines
559 B
C#
22 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
|
|
}
|
|
}
|