Added canInput method

This commit is contained in:
Richard Davey 2022-11-08 23:21:25 +00:00
parent f853f72b92
commit b182557d03

View file

@ -572,6 +572,21 @@ var Systems = new Class({
return this.settings.status; return this.settings.status;
}, },
/**
* Can this Scene receive Input events?
*
* @method Phaser.Scenes.Systems#canInput
* @since 3.60.0
*
* @return {boolean} `true` if this Scene can receive Input events.
*/
canInput: function ()
{
var status = this.settings.status;
return (status > CONST.PENDING && status <= CONST.RUNNING);
},
/** /**
* Is this Scene sleeping? * Is this Scene sleeping?
* *