public static bool GetTap(int playerId, string elementName);
public static bool GetTap(VPlayer player, string elementName);


using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
    public int playerId;

    void Update()
        if(VInput.GetTap(playerId, "swipe-field"))
            Debug.Log("Tapped swipe field!");
        else if(VInput.GetInput(playerId, "swipe-field"))
            // Output registered swipe vector
            Debug.Log("Swipe detected!");
            Debug.Log(VInput.GetSwipeVector(playerId, "swipe-field"));

Indicates whether an input element was touched but has not been moved enough to trigger. This method can be used for relative d-pads, relative joysticks and swipe fields.


playerId The player identifier.
player A player object.
elementName The name identifier of the input element set in the controller editor.