mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-31 01:59:59 -06:00
30 lines
879 B
C#
30 lines
879 B
C#
using Ryujinx.HLE.HOS.Services.Hid.Types.SharedMemory.Common;
|
|
using Ryujinx.HLE.HOS.Services.Hid.Types.SharedMemory.DebugMouse;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Hid
|
|
{
|
|
public class DebugMouseDevice : BaseDevice
|
|
{
|
|
public DebugMouseDevice(Switch device, bool active) : base(device, active) { }
|
|
|
|
public void Update()
|
|
{
|
|
ref RingLifo<DebugMouseState> lifo = ref _device.Hid.SharedMemory.DebugMouse;
|
|
|
|
ref DebugMouseState previousEntry = ref lifo.GetCurrentEntryRef();
|
|
|
|
DebugMouseState newState = new()
|
|
{
|
|
SamplingNumber = previousEntry.SamplingNumber + 1,
|
|
};
|
|
|
|
if (Active)
|
|
{
|
|
// TODO: This is a debug device only present in dev environment, do we want to support it?
|
|
}
|
|
|
|
lifo.Write(ref newState);
|
|
}
|
|
}
|
|
}
|