Refactor and remove prevent default keyboard
This commit is contained in:
parent
0d2893ec75
commit
942d2cbcef
3 changed files with 20 additions and 16 deletions
|
@ -525,8 +525,7 @@ export class GameScene extends Phaser.Scene implements CenterListener {
|
|||
|
||||
this.createPromiseResolve();
|
||||
|
||||
// TODO: use inputmanager instead
|
||||
this.input.keyboard.on('keyup-SPACE', () => {
|
||||
this.userInputManager.spaceEvent( () => {
|
||||
this.outlinedItem?.activate();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue