mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-22 11:50:17 +00:00
25 lines
716 B
C#
25 lines
716 B
C#
namespace Ryujinx.HLE.HOS.Services.Hid
|
|
{
|
|
public class DebugPadDevice : BaseDevice
|
|
{
|
|
public DebugPadDevice(Switch device, bool active) : base(device, active) { }
|
|
|
|
public void Update()
|
|
{
|
|
ref RingLifo<DebugPadState> lifo = ref _device.Hid.SharedMemory.DebugPad;
|
|
|
|
ref DebugPadState previousEntry = ref lifo.GetCurrentEntryRef();
|
|
|
|
DebugPadState newState = new();
|
|
|
|
if (Active)
|
|
{
|
|
// TODO: This is a debug device only present in dev environment, do we want to support it?
|
|
}
|
|
|
|
newState.SamplingNumber = previousEntry.SamplingNumber + 1;
|
|
|
|
lifo.Write(ref newState);
|
|
}
|
|
}
|
|
}
|