Phaser API Documentation

  Version: 
InputConfiguration
Properties:
name type arguments Default description
hitArea any <optional>

The object / shape to use as the Hit Area. If not given it will try to create a Rectangle based on the texture frame.

hitAreaCallback Phaser.Types.Input.HitAreaCallback <optional>

The callback that determines if the pointer is within the Hit Area shape or not.

draggable boolean <optional> false

If true the Interactive Object will be set to be draggable and emit drag events.

dropZone boolean <optional> false

If true the Interactive Object will be set to be a drop zone for draggable objects.

useHandCursor boolean <optional> false

If true the Interactive Object will set the pointer hand cursor when a pointer is over it. This is a short-cut for setting cursor: 'pointer'.

cursor string <optional>

The CSS string to be used when the cursor is over this Interactive Object.

pixelPerfect boolean <optional> false

If true the a pixel perfect function will be set for the hit area callback. Only works with image texture based Game Objects, not Render Textures.

alphaTolerance number <optional> 1

If pixelPerfect is set, this is the alpha tolerance threshold value used in the callback.

Type:
object
Since: 3.0.0