Using this code on Windows7 with a touchscreen:
Input.simulateMouseWithTouches = false;
...
for (var i = 0; i < Input.touchCount; i++)
{
var touch = Input.GetTouch(i);
...
}
Problem: If I use one finger to touch the screen, touchCount remains 0. If I move the finger touchCount goes up to 1 and the touch is registered. If I hold the first finger on the screen and then touch with a second finger, both motionless touches are registered.
The same code seems to work fine on my iPhone, so this could be a bug, or I am setting something incorrectly.
Any ideas?
Could it just be due to your application not having focus in Windows until after the first touch?
Sorry missed your reply. Focus is there for sure. It happens even after touching the device a lot. If I stop touching, the first touch is not registered. The second touch then registers both touches.
Looks like it is not an issue with Windows 7, but with Unity. This web example works absolutely perfectly on my win7 touch-screen: TouchList objects - touches, targetTouches, changedTouches
My code works fine on Android and iPhone, so I don’t think it’s an issue with my code.
I’ve not gotten round to trying the alternate input system.