Phaser API Documentation

  Version: 
setGlobalTopOnly(value)

Description:

When set to true the global Input Manager will emulate DOM behavior by only emitting events from the top-most Scene in the Scene List. By default, if a Scene receives an input event it will then stop the event from flowing down to any Scenes below it in the Scene list. To disable this behavior call this method with false.

Parameters:

name type description
value boolean

Set to true to stop processing input events on the Scene that receives it, or false to let the event continue down the Scene list.

Returns:
Description:

This InputPlugin object.

Examples:
Since: 3.0.0