Input event type for screen touch events. (only available on mobile devices)
    public class InputEventScreenTouch : InputEvent

Stores multi-touch press/release information. Supports touch press, touch release and Index for multi-touch count and order.

Inheritance Chain

Constructors

    public InputEventScreenTouch()

Properties

    public int Index { get; set; }

The touch index in the case of a multi-touch event. One index = one finger.

    public Vector2 Position { get; set; }

The touch position.

    public bool Pressed { get; set; }

If true, the touch’s state is pressed. If false, the touch’s state is released.

Methods

    [Obsolete("GetIndex is deprecated. Use the Index property instead.")]
    public int GetIndex()

Getter for Index

    [Obsolete("GetPosition is deprecated. Use the Position property instead.")]
    public Vector2 GetPosition()

Getter for Position

    [Obsolete("SetIndex is deprecated. Use the Index property instead.")]
    public void SetIndex(int index)

Setter for Index

    [Obsolete("SetPosition is deprecated. Use the Position property instead.")]
    public void SetPosition(Vector2 position)

Setter for Position

    [Obsolete("SetPressed is deprecated. Use the Pressed property instead.")]
    public void SetPressed(bool pressed)

Setter for Pressed

Tags: