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/InputHandler.js (Line 755)
doc_phaser
2017-02-14 10:53:14
Comments
Leave a Comment

Please login to continue.