From dd103176fe9b6a0a738d1913ded522028488b741 Mon Sep 17 00:00:00 2001 From: emmaus Date: Mon, 26 Feb 2018 12:31:23 +0000 Subject: [PATCH] added Hid_Max_Num_Touches constant --- Ryujinx.Core/Hid/HidTouchScreen.cs | 1 + Ryujinx/Ui/GLScreen.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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();