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 |
Returns
boolean -
True if the pointer is down, otherwise false.
- Source code: input/InputHandler.js (Line 710)
Please login to continue.