mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-20 12:41:40 +00:00
3443023a08
* hid: Rewrite shared memory management This entirely rewrite our ancient (and original) HID shared memory interface to be more usable and accurate. HID update logics were updated to reflect those changes but should work still the same way it previously did. This need heavy testing just in case to avoid possible regressions. * Silence warnings * Address gdkchan's comments * Address Ac_K's comments * Address one missing nit
76 lines
1.6 KiB
C#
76 lines
1.6 KiB
C#
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Hid.Types.SharedMemory.Npad
|
|
{
|
|
/// <summary>
|
|
/// Nintendo pad style
|
|
/// </summary>
|
|
[Flags]
|
|
enum NpadStyleTag : uint
|
|
{
|
|
/// <summary>
|
|
/// No type.
|
|
/// </summary>
|
|
None = 0,
|
|
|
|
/// <summary>
|
|
/// Pro controller.
|
|
/// </summary>
|
|
FullKey = 1 << 0,
|
|
|
|
/// <summary>
|
|
/// Joy-Con controller in handheld mode.
|
|
/// </summary>
|
|
Handheld = 1 << 1,
|
|
|
|
/// <summary>
|
|
/// Joy-Con controller in dual mode.
|
|
/// </summary>
|
|
JoyDual = 1 << 2,
|
|
|
|
/// <summary>
|
|
/// Joy-Con left controller in single mode.
|
|
/// </summary>
|
|
JoyLeft = 1 << 3,
|
|
|
|
/// <summary>
|
|
/// Joy-Con right controller in single mode.
|
|
/// </summary>
|
|
JoyRight = 1 << 4,
|
|
|
|
/// <summary>
|
|
/// GameCube controller.
|
|
/// </summary>
|
|
Gc = 1 << 5,
|
|
|
|
/// <summary>
|
|
/// Poké Ball Plus controller.
|
|
/// </summary>
|
|
Palma = 1 << 6,
|
|
|
|
/// <summary>
|
|
/// NES and Famicom controller.
|
|
/// </summary>
|
|
Lark = 1 << 7,
|
|
|
|
/// <summary>
|
|
/// NES and Famicom controller in handheld mode.
|
|
/// </summary>
|
|
HandheldLark = 1 << 8,
|
|
|
|
/// <summary>
|
|
/// SNES controller.
|
|
/// </summary>
|
|
Lucia = 1 << 9,
|
|
|
|
/// <summary>
|
|
/// Generic external controller.
|
|
/// </summary>
|
|
SystemExt = 1 << 29,
|
|
|
|
/// <summary>
|
|
/// Generic controller.
|
|
/// </summary>
|
|
System = 1 << 30
|
|
}
|
|
}
|