mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix powerups on web
This commit is contained in:
parent
e8b8a422f7
commit
53a39a63c0
1 changed files with 1 additions and 1 deletions
|
|
@ -1765,7 +1765,7 @@ class Marble extends GameObject {
|
|||
|| Gamepad.isDown(Settings.gamepadSettings.jump)) {
|
||||
move.jump = true;
|
||||
}
|
||||
if (Key.isDown(Settings.controlsSettings.powerup)
|
||||
if ((!Util.isTouchDevice() && Key.isDown(Settings.controlsSettings.powerup))
|
||||
|| (Util.isTouchDevice() && MarbleGame.instance.touchInput.powerupButton.pressed)
|
||||
|| Gamepad.isDown(Settings.gamepadSettings.powerup)) {
|
||||
move.powerup = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue