Const
Event for releasing a binded key Data passed : {string} user-defined action, {number} keyCode
event.on
me.event.on(me.event.KEYUP, (action, keyCode) => { // Checking unbound keys if (keyCode == me.input.KEY.ESC) { if (me.state.isPaused()) { me.state.resume(); } else { me.state.pause(); } }}); Copy
me.event.on(me.event.KEYUP, (action, keyCode) => { // Checking unbound keys if (keyCode == me.input.KEY.ESC) { if (me.state.isPaused()) { me.state.resume(); } else { me.state.pause(); } }});
Event for releasing a binded key
Data passed : {string} user-defined action, {number} keyCode