input: Fixes TouchPoint wrong attribute (#2390)

This commit is contained in:
Ac_K
2021-06-23 23:44:09 +02:00
committed by GitHub
parent c71ae9c85c
commit d6b2ac33aa
6 changed files with 71 additions and 32 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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,