Pointer
class Pointer extends Bounds
a pointer object, representing a single finger on a touch enabled device.
Summary
Properties from Pointer
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
PointerEvent | TouchEvent | MouseEvent |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
boolean |
|
boolean |
|
number |
|
boolean |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
number |
|
string |
|
Properties inherited from Bounds
Methods inherited from Bounds
|
|
|
|
|
|
|
|
|
|
reset the bound |
|
Bounds |
|
boolean |
|
boolean |
|
boolean |
|
|
|
|
|
Polygon |
|
|
|
|
Public Properties
button: number = 0
number
the button property indicates which button was pressed on the mouse to trigger the event.
clientX: number = 0
number
the horizontal coordinate within the application's client area at which the event occurred
clientY: number = 0
number
the vertical coordinate within the application's client area at which the event occurred
deltaMode: number = 0
number
an unsigned long representing the unit of the delta values scroll amount
deltaX: number = 0
number
a double representing the horizontal scroll amount in the Wheel Event deltaMode unit.
deltaY: number = 0
number
a double representing the vertical scroll amount in the Wheel Event deltaMode unit.
deltaZ: number = 0
number
a double representing the scroll amount in the z-axis, in the Wheel Event deltaMode unit.
event: PointerEvent | TouchEvent | MouseEvent
PointerEvent | TouchEvent | MouseEvent
the originating Event Object
gameLocalX: number = 0
number
Event X coordinate relative to the holding container
gameLocalY: number = 0
number
Event Y coordinate relative to the holding container
gameScreenX: number = 0
number
Event X coordinate relative to the viewport
gameScreenY: number = 0
number
Event Y coordinate relative to the viewport
gameX: number = 0
number
Event normalized X coordinate within the game canvas itself
gameY: number = 0
number
Event normalized Y coordinate within the game canvas itself
isNormalized: boolean = false
boolean
true if not originally a pointer event
isPrimary: boolean = false
boolean
indicates whether or not the pointer device that created the event is the primary pointer.
movementX: number = 0
number
the difference in the X coordinate of the pointer since the previous move event
movementY: number = 0
number
the difference in the Y coordinate of the pointer since the previous move event
pageX: number = 0
number
the horizontal coordinate at which the event occurred, relative to the left edge of the entire document.
pageY: number = 0
number
the vertical coordinate at which the event occurred, relative to the left edge of the entire document.
pointerId: number
number
The unique identifier of the contact for a touch, mouse or pen
type: string
string
a string containing the event's type.