diff options
| author | Ac_K <Acoustik666@gmail.com> | 2021-06-23 23:44:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 23:44:09 +0200 |
| commit | d6b2ac33aa6d5fd21c884f218c886c6fe256acfc (patch) | |
| tree | c7ec20e6ab39ce28bc070764272235096e6efb07 /Ryujinx.HLE/HOS/Services/Hid/HidDevices | |
| parent | c71ae9c85c70bb2174807e21da16db427097c690 (diff) | |
input: Fixes TouchPoint wrong attribute (#2390)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Hid/HidDevices')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Hid/HidDevices/TouchDevice.cs | 1 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Hid/HidDevices/Types/TouchPoint.cs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/TouchDevice.cs b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/TouchDevice.cs index 432a37e3..bb58ee51 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/TouchDevice.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/TouchDevice.cs @@ -31,6 +31,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid newState.Touches[i] = new TouchState { DeltaTime = newState.SamplingNumber, + Attribute = pi.Attribute, X = pi.X, Y = pi.Y, FingerId = (uint)i, diff --git a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/Types/TouchPoint.cs b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/Types/TouchPoint.cs index d1172dd0..457d2b0d 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/Types/TouchPoint.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/Types/TouchPoint.cs @@ -1,7 +1,10 @@ +using Ryujinx.HLE.HOS.Services.Hid.Types.SharedMemory.TouchScreen; + namespace Ryujinx.HLE.HOS.Services.Hid { public struct TouchPoint { + public TouchAttribute Attribute; public uint X; public uint Y; public uint DiameterX; |
