I have a sprite jumping if the spacebar is pushed but i also want the same to happen on a mobile if the screen is tapped
this.game.input.keyboard.addKeyCapture([Phaser.Keyboard.SPACEBAR]);
cursors = this.input.keyboard.createCursorKeys();
this.jumpButton = this.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR) || this.input.onTap.add(onTap, this);
what am i missing?