diff --git a/Ryujinx.Core/Hid/HidTouchScreen.cs b/Ryujinx.Core/Hid/HidTouchScreen.cs index 4a1a21fde..590bed611 100644 --- a/Ryujinx.Core/Hid/HidTouchScreen.cs +++ b/Ryujinx.Core/Hid/HidTouchScreen.cs @@ -57,6 +57,7 @@ namespace Ryujinx.Core public uint[] XTouches; public uint[] YTouches; public uint NumberOfTouches; + public const uint Hid_Max_Num_Touches = 16; } } \ No newline at end of file diff --git a/Ryujinx/Ui/GLScreen.cs b/Ryujinx/Ui/GLScreen.cs index 53cd5b1aa..ecdef0040 100644 --- a/Ryujinx/Ui/GLScreen.cs +++ b/Ryujinx/Ui/GLScreen.cs @@ -38,8 +38,8 @@ namespace Ryujinx Touches CurrentTouchPoints = new Touches() { - XTouches = new uint[16], - YTouches = new uint[16] + XTouches = new uint[Touches.Hid_Max_Num_Touches], + YTouches = new uint[Touches.Hid_Max_Num_Touches] }; if (Keyboard[OpenTK.Input.Key.Escape]) this.Exit();