mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-24 11:05:12 +00:00
ba86a5d7f3
* nfp:user: Implement IUser - Based on RE of sysmod FW 1.0 and 3.0 with help of https://github.com/switchbrew/libnx/ and https://reswitched.github.io/SwIPC/ifaces.html#nn::nfp::detail::IUser - Accurate implementation of Initialize, AttachActivateEvent, AttachDeactivateEvent, GetState, GetDeviceState, GetNpadId and GetDeviceState. - Implementation of Finalize and ListDevices (close #638). * reorder private var * fix nits
20 lines
No EOL
489 B
C#
20 lines
No EOL
489 B
C#
using Ryujinx.HLE.HOS.Kernel.Threading;
|
|
using Ryujinx.HLE.HOS.Services.Hid;
|
|
using Ryujinx.HLE.Input;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
|
{
|
|
class Device
|
|
{
|
|
public KEvent ActivateEvent;
|
|
public int ActivateEventHandle;
|
|
|
|
public KEvent DeactivateEvent;
|
|
public int DeactivateEventHandle;
|
|
|
|
public DeviceState State = DeviceState.Unavailable;
|
|
|
|
public HidControllerId Handle;
|
|
public NpadIdType NpadIdType;
|
|
}
|
|
} |