InputHandler#draggable

draggable : boolean Is this sprite allowed to be dragged by the mouse? true = yes, false = no Source code: input/InputHandler.js (Line 155)

InputHandler#dragFromCenter

dragFromCenter : boolean Is the Sprite dragged from its center, or the point at which the Pointer was pressed down upon it? Source code: input/InputHandler.js (Line 182)

InputHandler#dragDistanceThreshold

dragDistanceThreshold : integer The distance, in pixels, the pointer has to move while being held down, before the Sprite thinks it is being dragged. Source code: input/InputHandler.js (Line 197)

InputHandler#downPoint

downPoint : Phaser.Point A Point object containing the coordinates of the Pointer when it was first pressed down onto this Sprite. Source code: input/InputHandler.js (Line 207)

InputHandler#downDuration()

downDuration(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 pressed down on the Sprite, or -1 if not over. Source code: input/InputHandler.js (Line 1363)

InputHandler#disableSnap()

disableSnap() Stops the sprite from snapping to a grid during drag or release. Source code: input/InputHandler.js (Line 1642)

InputHandler#disableDrag()

disableDrag() Stops this sprite from being able to be dragged.If it is currently the target of an active drag it will be stopped immediately; also disables any set callbacks. Source code: input/InputHandler.js (Line 1441)

InputHandler#destroy()

destroy() Clean up memory. Source code: input/InputHandler.js (Line 430)

InputHandler#checkPointerOver()

checkPointerOver(pointer, fastTest) → {boolean} Checks if the given pointer is over the Sprite this InputHandler belongs to.Use the fastTest flag is to quickly check just the bounding hit area even if InputHandler.pixelPerfectOver is true. Parameters Name Type Argument Default Description pointer Phaser.Pointer fastTest boolean <optional> false Force a simple hit area check even if pixelPerfectOver is true for this object? Returns boolean - Source code: input/InputHa

InputHandler#checkPointerDown()

checkPointerDown(pointer, fastTest) → {boolean} Checks if the given pointer is both down and over the Sprite this InputHandler belongs to.Use the fastTest flag is to quickly check just the bounding hit area even if InputHandler.pixelPerfectOver is true. Parameters Name Type Argument Default Description pointer Phaser.Pointer fastTest boolean <optional> false Force a simple hit area check even if pixelPerfectOver is true for this object? Returns boolean - True if the p