added Hid_Max_Num_Touches constant

This commit is contained in:
emmaus 2018-02-26 12:31:23 +00:00
parent 395c6cb82f
commit dd103176fe
2 changed files with 3 additions and 2 deletions

View file

@ -57,6 +57,7 @@ namespace Ryujinx.Core
public uint[] XTouches; public uint[] XTouches;
public uint[] YTouches; public uint[] YTouches;
public uint NumberOfTouches; public uint NumberOfTouches;
public const uint Hid_Max_Num_Touches = 16;
} }
} }

View file

@ -38,8 +38,8 @@ namespace Ryujinx
Touches CurrentTouchPoints = new Touches() Touches CurrentTouchPoints = new Touches()
{ {
XTouches = new uint[16], XTouches = new uint[Touches.Hid_Max_Num_Touches],
YTouches = new uint[16] YTouches = new uint[Touches.Hid_Max_Num_Touches]
}; };
if (Keyboard[OpenTK.Input.Key.Escape]) this.Exit(); if (Keyboard[OpenTK.Input.Key.Escape]) this.Exit();