- Home /
Question by
RedKickify · Sep 24, 2017 at 08:18 PM ·
inputiphonetouchmultitouch
Input.GetTouch SOMETIMES not registering on iOS
80% of the time, the Input.GetTouch(0) works fine. However sometimes it does not register a touch. Most of the time it only fails to register touchs in one specific 1/4 square of my phone. I have tested the app on other iPhones, but I have the same problem there as well. From what I can tell, the problem only occurs on multitouch.
void CheckForInput()
{
if(Input.touchCount == 2)
{
makeBurn = true;
rotate = false;
}
else if(Input.touchCount == 1)
{
touchPos = Input.GetTouch(0).position;
makeBurn = false;
FirstTouch();
direction = 0;
if (touchPos.x < Screen.width / 2)
{
direction--;
rotate = true;
}
else if (touchPos.x > Screen.width / 2)
{
direction++;
rotate = true;
}
}
else
{
NoInput();
}
}
Comment
Your answer
Follow this Question
Related Questions
Windows Multitouch Fail 1 Answer
Problem with the touch control 2 Answers
Working with Touch screens... 1 Answer
Joystick / Button 3 Answers
iPhone - How to calculate a decent touch swipe speed? 2 Answers