I have a touch joystick for a mobile device. (works nicely) it uses PointEventData position to work. I’m trying to make it double press the joystick to boost. Works in editor on joysticks but only returns 0 for data.clickCount on mobile device even though the joystick works properly.
I’ve got a gameobject with EventSystem, Standalone input module and touch input module(redundant apparently)
public virtual void OnPointerDown(PointerEventData data)
{
isPressed = true;
UpdateAxes(data.position);
if (data.clickCount == 2)
{
StartCoroutine(player.Boost());
}
}