Im working on an open-source cross-platform Unity game, and I needed to support all kinds of platforms and controls without needing to modify the code.
This code used to work:
public void OnPointerDown(PointerEventData eventData)
{
selected = !selected;
if (selected && eventData.clickCount >= 1) {
// ...
} else {
// ...
}
}
However, it then suddenly stopped working. eventData.clickCount always registers 0 on Android only, even if Input.simulateMouseWithTouches was enabled or disabled.