Touch Class

https://w3c.github.io/touch-events/#touch-interface

public sealed class Touch

Constructors

NameDescription
Touch(TouchInit)Creates a touch point from the given initialization dictionary.

Touch(TouchInit)

TouchEvents.cs

Creates a touch point from the given initialization dictionary.

public Touch(TouchInit touchInitDict)

Properties

NameDescription
AltitudeAngleGets the altitude, in radians, of the transducer.
AzimuthAngleGets the azimuth angle, in radians, of the transducer.
ClientXGets the horizontal coordinate of the point relative to the viewport.
ClientYGets the vertical coordinate of the point relative to the viewport.
ForceGets the relative force of the contact, between 0 and 1.
IdentifierGets the identification number of the touch point, the same for all the events of the contact.
PageXGets the horizontal coordinate of the point relative to the page.
PageYGets the vertical coordinate of the point relative to the page.
RadiusXGets the radius of the ellipse of the contact along its major axis.
RadiusYGets the radius of the ellipse of the contact along its minor axis.
RotationAngleGets the angle, in degrees, of the ellipse of the contact.
ScreenXGets the horizontal coordinate of the point relative to the screen.
ScreenYGets the vertical coordinate of the point relative to the screen.
TargetGets the target the touch point started on (even when it moved outside of it).
TouchTypeGets the type of the device that produced the touch.

AltitudeAngle

TouchEvents.cs

Gets the altitude, in radians, of the transducer.

public float AltitudeAngle { get; }

AzimuthAngle

TouchEvents.cs

Gets the azimuth angle, in radians, of the transducer.

public float AzimuthAngle { get; }

Gets the horizontal coordinate of the point relative to the viewport.

public double ClientX { get; }

Gets the vertical coordinate of the point relative to the viewport.

public double ClientY { get; }

Gets the relative force of the contact, between 0 and 1.

public float Force { get; }

Identifier

TouchEvents.cs

Gets the identification number of the touch point, the same for all the events of the contact.

public int Identifier { get; }

Gets the horizontal coordinate of the point relative to the page.

public double PageX { get; }

Gets the vertical coordinate of the point relative to the page.

public double PageY { get; }

Gets the radius of the ellipse of the contact along its major axis.

public float RadiusX { get; }

Gets the radius of the ellipse of the contact along its minor axis.

public float RadiusY { get; }

RotationAngle

TouchEvents.cs

Gets the angle, in degrees, of the ellipse of the contact.

public float RotationAngle { get; }

Gets the horizontal coordinate of the point relative to the screen.

public double ScreenX { get; }

Gets the vertical coordinate of the point relative to the screen.

public double ScreenY { get; }

Gets the target the touch point started on (even when it moved outside of it).

public EventTarget Target { get; }

Gets the type of the device that produced the touch.

public TouchType TouchType { get; }