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 pointer is down, otherwise false.

Source code: input/InputHandler.js (Line 710)
doc_phaser
2017-02-14 10:53:13
Comments
Leave a Comment

Please login to continue.