InputHandler#start()

start(priority, useHandCursor) → {Phaser.Sprite}

Starts the Input Handler running. This is called automatically when you enable input on a Sprite, or can be called directly if you need to set a specific priority.

Parameters
Name Type Argument Default Description
priority number <optional>
0

Higher priority sprites take click priority over low-priority sprites when they are stacked on-top of each other.

useHandCursor boolean <optional>
false

If true the Sprite will show the hand cursor on mouse-over (doesn't apply to mobile browsers)

Returns

The Sprite object to which the Input Handler is bound.

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

Please login to continue.