“[HiTouch_PressGestureDetector] Touch pointer move a lot. The moving distance of X is:65.355225, limit is:60The moving distance of Y is:0.0, limit is:60” keeps appearing in the console and seems to be limitig how good I can make my controls feel. Is there any way to modify or even remove this limit? This is my code btw:
TouchCollection touchLocations = TouchPanel.GetState();
if (touchLocations.IsConnected)
{
switch (touchState)
{
case 1:
if (touchLocations.Count >= 1)
{
first = touchLocations[0];
touchState = 2;
}
break;
case 2:
if (t >= timeLim)
{
if (touchLocations.Count < 1)
{
touchType = TouchType.Tap;
}
else
{
second = touchLocations[0];
Console.WriteLine(Main.getDistance(first.Position.X, first.Position.Y, second.Position.X, second.Position.Y));
if (Main.getDistance(first.Position.X, first.Position.Y, second.Position.X, second.Position.Y) > 0)
{
int angle = (int)Main.getSnappedAngle(first.Position.X, first.Position.Y, second.Position.X, second.Position.Y);
switch (angle)
{
case 0:
touchType = TouchType.SwipeUp;
break;
case 90:
touchType = TouchType.SwipeRight;
break;
case 180:
touchType = TouchType.SwipeDown;
break;
case 270:
touchType = TouchType.SwipeLeft;
break;
}
}
}
t = 0;
touchState = 3;
}
t += dt;
break;
case 3:
if (touchLocations.Count < 1)
{
touchState = 1;
}
touchType = TouchType.None;
break;
}
}
Summary
This text will be hidden