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 | |
| parent | c71ae9c85c70bb2174807e21da16db427097c690 (diff) | |
input: Fixes TouchPoint wrong attribute (#2390)
Diffstat (limited to 'Ryujinx.HLE/HOS')
3 files changed, 5 insertions, 1 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; diff --git a/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMemory/TouchScreen/TouchAttribute.cs b/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMemory/TouchScreen/TouchAttribute.cs index 8a8f9cc1..d2c5726a 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMemory/TouchScreen/TouchAttribute.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMemory/TouchScreen/TouchAttribute.cs @@ -3,7 +3,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid.Types.SharedMemory.TouchScreen { [Flags] - enum TouchAttribute : uint + public enum TouchAttribute : uint { None = 0, Start = 1 << 0, |
