W3cubDocs

/Haxe JavaScript

PointerEvent

package js.html

extends MouseEventUIEventEvent

Available on js

The PointerEvent interface represents the state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.

Documentation PointerEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new(type:String, ?eventInitDict:Null<PointerEventInit>)

Throws:

null

DOMError

Variables

read onlyheight:Int

The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer.

read onlyisPrimary:Bool

Indicates if the pointer represents the primary pointer of this pointer type.

read onlypointerId:Int

A unique identifier for the pointer causing the event.

read onlypointerType:String

Indicates the device type that caused the event (mouse, pen, touch, etc.)

read onlypressure:Float

The normalized pressure of the pointer input in the range 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively.

read onlytangentialPressure:Float

The normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress) in the range -1 to 1, where 0 is the neutral position of the control.

read onlytiltX:Int

The plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis.

read onlytiltY:Int

The plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis.

read onlytwist:Int

The clockwise rotation of the transducer (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359.

read onlywidth:Int

The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer.

Methods

getCoalescedEvents():Array<PointerEvent>

Returns a sequence of all PointerEvent instances that were coalesced into the dispatched pointermove event.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/PointerEvent.html