hitTest(displayObject, pointer, localPoint) Tests if the pointer hits the given object. Parameters
keyCode : number The keycode of this key. Source code:
isDown : boolean If the Pointer is touching the touchscreen, or any mouse or pen button is held down, isDown is set to
withinGame : boolean true if the Pointer is over the game canvas, otherwise false. Source
active : boolean An active pointer is one that is currently pressed down on the display. A Mouse is always active.
destroy() Destroys this DeviceButton, this disposes of the onDown, onUp and onFloat signalsand clears the parent and game references
targetObject :any The Game Object this Pointer is currently over / touching / dragging.
pointerLockChange(event) Internal pointerLockChange handler. Parameters
touchEndCallback : Function A callback that can be fired on a touchEnd event. Source
reset(hard) Resets the state of this Key. This sets isDown to false, isUp to true, resets the time
Page 25 of 29