PIXI.FederatedPointerEvent
class FederatedPointerEvent extends PIXI.FederatedMouseEvent implements PointerEvent
A PIXI.FederatedEvent for pointer events.
Constructor
new PIXI.FederatedPointerEvent() → {}
Summary
Properties from FederatedPointerEvent
number |
This is the number of clicks that occurs in 200ms/click of each other. |
number |
|
boolean |
|
number |
|
string |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
Properties inherited from FederatedMouseEvent
boolean |
Whether the "alt" key was pressed when this mouse event occurred. |
number |
The specific button that was pressed in this mouse event. |
number |
The button depressed when this event occurred. |
PIXI.Point |
The coordinates of the mouse event relative to the canvas. |
number |
|
number |
|
boolean |
Whether the "control" key was pressed when this mouse event occurred. |
PIXI.Point |
The pointer coordinates in world space. |
number |
|
number |
|
boolean |
Whether the "meta" key was pressed when this mouse event occurred. |
PIXI.Point |
The movement in this pointer relative to the last |
number |
|
number |
|
PIXI.Point |
|
number |
|
number |
|
EventTarget |
This is currently not implemented in the Federated Events API. |
PIXI.Point |
|
number |
|
number |
|
boolean |
Whether the "shift" key was pressed when this mouse event occurred. |
number |
|
number |
|
Properties inherited from FederatedEvent
boolean |
Flags whether this event bubbles. This will take effect only if it is set before propagation. |
boolean |
|
boolean |
|
boolean |
|
PIXI.FederatedEventTarget |
The listeners of the event target that are being notified. |
this |
|
boolean |
Flags whether the default response of the user agent was prevent through this event. |
|
|
boolean |
Flags whether this is a user-trusted event |
PIXI.Point |
The coordinates of the evnet relative to the nearest DOM layer. This is a non-standard property. |
number |
|
number |
|
PIXI.EventBoundary |
The EventBoundary that manages this event. Null for root events. |
N |
The native event that caused the foremost original event. |
PIXI.FederatedEvent<N> |
The original event that caused this event, if any. |
PIXI.Point |
The coordinates of the event relative to the DOM document. This is a non-standard property. |
number |
|
number |
|
PIXI.FederatedEventTarget[] |
The composed path of the event's propagation. The |
boolean |
Flags whether propagation was immediately stopped. |
boolean |
Flags whether propagation was stopped. |
boolean |
|
EventTarget |
|
PIXI.FederatedEventTarget |
The event target that this will be dispatched to. |
number |
The timestamp of when the event was created. |
string |
The type of event, e.g. |
WindowProxy |
The global Window object. |
number |
|
Methods inherited from FederatedMouseEvent
Methods inherited from FederatedEvent
PIXI.FederatedEventTarget[] |
The propagation path for this event. Alias for EventBoundary.propagationPath. |
void |
|
void |
Prevent default behavior of PixiJS and the user agent. |
void |
|
void |
|
Public Properties
detail: number
This is the number of clicks that occurs in 200ms/click of each other.
height: number = 0
The height of the pointer's contact along the y-axis, measured in CSS pixels. radiusY of TouchEvents will be represented by this value.
isPrimary: boolean = false
Indicates whether or not the pointer device that created the event is the primary pointer.
pointerId: number
The unique identifier of the pointer.
pointerType: string
The type of pointer that triggered the event.
pressure: number
Pressure applied by the pointing device during the event. s A Touch's force property will be represented by this value.
tangentialPressure: number
Barrel pressure on a stylus pointer.
tiltX: number
The angle, in degrees, between the pointer device and the screen.
tiltY: number
The angle, in degrees, between the pointer device and the screen.
twist: number
Twist of a stylus pointer.
width: number = 0
The width of the pointer's contact along the x-axis, measured in CSS pixels. radiusX of TouchEvents will be represented by this value.