CanvasPointerEvent
CanvasPointerEvent
Constructors
new CanvasPointerEvent()
new CanvasPointerEvent(
x
,y
,e
):CanvasPointerEvent
Parameters
• x: number
• y: number
• e
• e.altKey: boolean
• e.button: number
• e.ctrlKey: boolean
• e.metaKey: boolean
• e.shiftKey: boolean
• e.touchDistance?: number
Returns
Source
Properties
altDown
altDown:
boolean
Source
button
button:
number
Source
ctrlDown
ctrlDown:
boolean
Source
leftButtonDown
leftButtonDown:
boolean
Source
modDown
modDown:
boolean
Source
shiftDown
shiftDown:
boolean
Source
touchDistance
touchDistance:
number
Source
x
x:
number
X-position in CCS (Canvas coord-system)
Source
y
y:
number
Y-position in CCS (Canvas coord-system)