Skip to content

TouchPoint

namespace Griff.Runtime;
public struct TouchPoint

A finger on a touch screen (see Touches): which one it is (the same from when it goes down until it’s lifted), where it is in world units, and whether it went down or was lifted this frame.

public int Id { get; init; }
public bool Pressed { get; init; }
public bool Released { get; init; }
public Vector2 World { get; init; }
public void Deconstruct(out int Id, out Vector2 World, out bool Pressed, out bool Released)
public override bool Equals(object obj)
public bool Equals(TouchPoint other)
public override int GetHashCode()
public override string ToString()