associate a user defined action to a keycode
// enable the keyboardme.input.bindKey(me.input.KEY.LEFT, "left");me.input.bindKey(me.input.KEY.RIGHT, "right");me.input.bindKey(me.input.KEY.X, "jump", true);me.input.bindKey(me.input.KEY.F1, "options", true, true); Copy
// enable the keyboardme.input.bindKey(me.input.KEY.LEFT, "left");me.input.bindKey(me.input.KEY.RIGHT, "right");me.input.bindKey(me.input.KEY.X, "jump", true);me.input.bindKey(me.input.KEY.F1, "options", true, true);
(See input.KEY)
user defined corresponding action
Optional
cancel the keypress event once read
prevent default browser action
associate a user defined action to a keycode
Example