InputHandler#pixelPerfectClick

pixelPerfectClick : boolean Set to true to use pixel perfect hit detection when checking if the pointer is over this Sprite when it's clicked or touched.The x/y coordinates of the pointer are tested against the image in combination with the InputHandler.pixelPerfectAlpha value.This feature only works for display objects with image based textures such as Sprites. It won't work on BitmapText or Rope.Warning: This is expensive so only enable if you really need it. Use a pixel perfect check when

InputHandler#pixelPerfectAlpha

pixelPerfectAlpha : number The alpha tolerance threshold. If the alpha value of the pixel matches or is above this value, it's considered a hit. Default Value 255 Source code: input/InputHandler.js (Line 149)

InputHandler#overDuration()

overDuration(pointerId) → {number} If the pointer is currently over this Sprite this returns how long it has been there for in milliseconds. Parameters Name Type Argument Default Description pointerId integer <optional> 0 Returns number - The number of milliseconds the pointer has been over the Sprite, or -1 if not over. Source code: input/InputHandler.js (Line 1343)

InputHandler#justReleased()

justReleased(pointerId, delay) → {boolean} Returns true if the pointer was touching this Sprite, but has been released within the specified delay time (defaults to 500ms, half a second) Parameters Name Type Argument Default Description pointerId integer <optional> 0 delay number The time below which the pointer is considered as just out. Returns boolean - Source code: input/InputHandler.js (Line 1326)

InputHandler#justPressed()

justPressed(pointerId, delay) → {boolean} Returns true if the pointer has touched or clicked on the Sprite within the specified delay time (defaults to 500ms, half a second) Parameters Name Type Argument Default Description pointerId integer <optional> 0 delay number The time below which the pointer is considered as just over. Returns boolean - Source code: input/InputHandler.js (Line 1309)

InputHandler#justOver()

justOver(pointerId, delay) → {boolean} Returns true if the pointer has entered the Sprite within the specified delay time (defaults to 500ms, half a second) Parameters Name Type Argument Default Description pointerId integer <optional> 0 delay number The time below which the pointer is considered as just over. Returns boolean - Source code: input/InputHandler.js (Line 1275)

InputHandler#justOut()

justOut(pointerId, delay) → {boolean} Returns true if the pointer has left the Sprite within the specified delay time (defaults to 500ms, half a second) Parameters Name Type Argument Default Description pointerId integer <optional> 0 delay number The time below which the pointer is considered as just out. Returns boolean - Source code: input/InputHandler.js (Line 1292)

InputHandler#isPixelPerfect()

isPixelPerfect() → {boolean} Is this object using pixel perfect checking? Returns boolean - True if the this InputHandler has either pixelPerfectClick or pixelPerfectOver set to true. Source code: input/InputHandler.js (Line 495)

InputHandler#isDragged

isDragged : boolean true if the Sprite is being currently dragged. Source code: input/InputHandler.js (Line 63)

InputHandler#InputHandler

new InputHandler(sprite) The Input Handler is bound to a specific Sprite and is responsible for managing all Input events on that Sprite. Parameters Name Type Description sprite Phaser.Sprite The Sprite object to which this Input Handler belongs. Source code: input/InputHandler.js (Line 14)