mirror of
https://github.com/wassname/phaser.git
synced 2026-07-18 12:30:44 +08:00
Adding the key capture to addCursors.
This commit is contained in:
@@ -107,6 +107,9 @@ Phaser.Keyboard.prototype = {
|
||||
addKey: function (keycode) {
|
||||
|
||||
this._hotkeys[keycode] = new Phaser.Key(this.game, keycode);
|
||||
|
||||
this.addKeyCapture(keycode);
|
||||
|
||||
return this._hotkeys[keycode];
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user