Table of Contents

Struct TouchContact

Namespace
Icy.Input.Devices
Assembly
IcyUI.dll

Describes one touch contact (finger) in an Contacts snapshot.

public readonly record struct TouchContact : IEquatable<TouchContact>
Implements
Inherited Members
Extension Methods

Constructors

TouchContact(int, Point, TouchContactState)

Describes one touch contact (finger) in an Contacts snapshot.

public TouchContact(int Id, Point Position, TouchContactState State)

Parameters

Id int

The contact identifier, stable from its Pressed to its Released snapshot.

Position Point

The contact position, in physical (back-buffer) pixels.

State TouchContactState

The contact state in this snapshot.

Properties

Id

The contact identifier, stable from its Pressed to its Released snapshot.

public int Id { get; init; }

Property Value

int

Position

The contact position, in physical (back-buffer) pixels.

public Point Position { get; init; }

Property Value

Point

State

The contact state in this snapshot.

public TouchContactState State { get; init; }

Property Value

TouchContactState