PointerEvent Class

https://w3c.github.io/pointerevents/#pointerevent-interface

public sealed class PointerEvent : MouseEvent
Inheritance
MouseEvent PointerEvent

Constructors

NameDescription
PointerEvent(string, PointerEventInit?)Creates a pointer event of the given type with the given initialization dictionary.

PointerEvent(string, PointerEventInit?)

PointerEvent.cs

Creates a pointer event of the given type with the given initialization dictionary.

public PointerEvent(string type, PointerEventInit? eventInitDict = null)

Properties

NameDescription
AltitudeAngleGets the altitude, in radians, of the transducer.
AzimuthAngleGets the azimuth angle, in radians, of the transducer.
HeightGets the height, in CSS pixels, of the contact geometry of the pointer.
IsPrimaryGets a value indicating whether the pointer is the primary pointer of its type.
PersistentDeviceIdGets the identifier of the pointing device that stays the same across the pointers it produces.
PointerIdGets the unique identifier of the pointer.
PointerTypeGets the type of the device that produced the event, such as mouse, pen or touch.
PressureGets the normalized pressure of the pointer input, between 0 and 1.
TangentialPressureGets the normalized tangential pressure (barrel pressure) of the pointer input, between -1 and 1.
TiltXGets the plane angle, in degrees, between the Y-Z plane and the plane containing the transducer axis and the Y axis.
TiltYGets the plane angle, in degrees, between the X-Z plane and the plane containing the transducer axis and the X axis.
TwistGets the clockwise rotation, in degrees, of the transducer around its own major axis.
WidthGets the width, in CSS pixels, of the contact geometry of the pointer.

AltitudeAngle

PointerEvent.cs

Gets the altitude, in radians, of the transducer.

public double AltitudeAngle { get; }

AzimuthAngle

PointerEvent.cs

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

public double AzimuthAngle { get; }

Gets the height, in CSS pixels, of the contact geometry of the pointer.

public double Height { get; }

Gets a value indicating whether the pointer is the primary pointer of its type.

public bool IsPrimary { get; }

PersistentDeviceId

PointerEvent.cs

Gets the identifier of the pointing device that stays the same across the pointers it produces.

public int PersistentDeviceId { get; }

Gets the unique identifier of the pointer.

public int PointerId { get; }

PointerType

PointerEvent.cs

Gets the type of the device that produced the event, such as mouse, pen or touch.

public string PointerType { get; }

Gets the normalized pressure of the pointer input, between 0 and 1.

public float Pressure { get; }

TangentialPressure

PointerEvent.cs

Gets the normalized tangential pressure (barrel pressure) of the pointer input, between -1 and 1.

public float TangentialPressure { get; }

Gets the plane angle, in degrees, between the Y-Z plane and the plane containing the transducer axis and the Y axis.

public int TiltX { get; }

Gets the plane angle, in degrees, between the X-Z plane and the plane containing the transducer axis and the X axis.

public int TiltY { get; }

Gets the clockwise rotation, in degrees, of the transducer around its own major axis.

public int Twist { get; }

Gets the width, in CSS pixels, of the contact geometry of the pointer.

public double Width { get; }

Methods

NameDescription
GetCoalescedEvents()https://w3c.github.io/pointerevents/#dom-pointerevent-getcoalescedevents
GetPredictedEvents()https://w3c.github.io/pointerevents/#dom-pointerevent-getpredictedevents

GetCoalescedEvents()

PointerEvent.cs

https://w3c.github.io/pointerevents/#dom-pointerevent-getcoalescedevents

public IReadOnlyList<PointerEvent> GetCoalescedEvents()

GetPredictedEvents()

PointerEvent.cs

https://w3c.github.io/pointerevents/#dom-pointerevent-getpredictedevents

public IReadOnlyList<PointerEvent> GetPredictedEvents()