mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-21 01:41:40 +00:00
d254548548
* change hid sharedmem writing to use structures
18 lines
688 B
C#
18 lines
688 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.Input
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe struct ControllerDeviceState
|
|
{
|
|
public ControllerDeviceType DeviceType;
|
|
public int Padding;
|
|
public DeviceFlags DeviceFlags;
|
|
public int UnintendedHomeButtonInputProtectionEnabled;
|
|
public BatteryState PowerInfo0BatteryState;
|
|
public BatteryState PowerInfo1BatteryState;
|
|
public BatteryState PowerInfo2BatteryState;
|
|
public fixed byte ControllerMac[16];
|
|
public fixed byte ControllerMac2[16];
|
|
}
|
|
}
|