PointerEvent Class
https://w3c.github.io/pointerevents/#pointerevent-interface
public sealed class PointerEvent : MouseEvent- Inheritance
MouseEventPointerEvent
Constructors
| Name | Description |
|---|---|
| PointerEvent(string, PointerEventInit?) | Creates a pointer event of the given type with the given initialization dictionary. |
PointerEvent(string, PointerEventInit?)
PointerEvent.csCreates a pointer event of the given type with the given initialization dictionary.
public PointerEvent(string type, PointerEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| AltitudeAngle | Gets the altitude, in radians, of the transducer. |
| AzimuthAngle | Gets the azimuth angle, in radians, of the transducer. |
| Height | Gets the height, in CSS pixels, of the contact geometry of the pointer. |
| IsPrimary | Gets a value indicating whether the pointer is the primary pointer of its type. |
| PersistentDeviceId | Gets the identifier of the pointing device that stays the same across the pointers it produces. |
| PointerId | Gets the unique identifier of the pointer. |
| PointerType | Gets the type of the device that produced the event, such as mouse, pen or touch. |
| Pressure | Gets the normalized pressure of the pointer input, between 0 and 1. |
| TangentialPressure | Gets the normalized tangential pressure (barrel pressure) of the pointer input, between -1 and 1. |
| TiltX | Gets the plane angle, in degrees, between the Y-Z plane and the plane containing the transducer axis and the Y axis. |
| TiltY | Gets the plane angle, in degrees, between the X-Z plane and the plane containing the transducer axis and the X axis. |
| Twist | Gets the clockwise rotation, in degrees, of the transducer around its own major axis. |
| Width | Gets the width, in CSS pixels, of the contact geometry of the pointer. |
AltitudeAngle
PointerEvent.csGets the altitude, in radians, of the transducer.
public double AltitudeAngle { get; }AzimuthAngle
PointerEvent.csGets the azimuth angle, in radians, of the transducer.
public double AzimuthAngle { get; }Height
PointerEvent.csGets the height, in CSS pixels, of the contact geometry of the pointer.
public double Height { get; }IsPrimary
PointerEvent.csGets a value indicating whether the pointer is the primary pointer of its type.
public bool IsPrimary { get; }PersistentDeviceId
PointerEvent.csGets the identifier of the pointing device that stays the same across the pointers it produces.
public int PersistentDeviceId { get; }PointerId
PointerEvent.csGets the unique identifier of the pointer.
public int PointerId { get; }PointerType
PointerEvent.csGets the type of the device that produced the event, such as mouse, pen or touch.
public string PointerType { get; }Pressure
PointerEvent.csGets the normalized pressure of the pointer input, between 0 and 1.
public float Pressure { get; }TangentialPressure
PointerEvent.csGets the normalized tangential pressure (barrel pressure) of the pointer input, between -1 and 1.
public float TangentialPressure { get; }TiltX
PointerEvent.csGets 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; }TiltY
PointerEvent.csGets 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; }Twist
PointerEvent.csGets the clockwise rotation, in degrees, of the transducer around its own major axis.
public int Twist { get; }Width
PointerEvent.csGets the width, in CSS pixels, of the contact geometry of the pointer.
public double Width { get; }Methods
| Name | Description |
|---|---|
| GetCoalescedEvents() | https://w3c.github.io/pointerevents/#dom-pointerevent-getcoalescedevents |
| GetPredictedEvents() | https://w3c.github.io/pointerevents/#dom-pointerevent-getpredictedevents |
GetCoalescedEvents()
PointerEvent.cshttps://w3c.github.io/pointerevents/#dom-pointerevent-getcoalescedevents
public IReadOnlyList<PointerEvent> GetCoalescedEvents()GetPredictedEvents()
PointerEvent.cshttps://w3c.github.io/pointerevents/#dom-pointerevent-getpredictedevents
public IReadOnlyList<PointerEvent> GetPredictedEvents()