mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 12:41:40 +00:00
fix joystick + kb inputs
This commit is contained in:
parent
e7ef4c2be0
commit
06fb5533bc
1 changed files with 4 additions and 4 deletions
|
|
@ -2151,16 +2151,16 @@ class Marble extends GameObject {
|
||||||
move.d.y = -Gamepad.getAxis(Settings.gamepadSettings.moveXAxis);
|
move.d.y = -Gamepad.getAxis(Settings.gamepadSettings.moveXAxis);
|
||||||
if (@:privateAccess !MarbleGame.instance.world.playGui.isChatFocused()) {
|
if (@:privateAccess !MarbleGame.instance.world.playGui.isChatFocused()) {
|
||||||
if (Key.isDown(Settings.controlsSettings.forward)) {
|
if (Key.isDown(Settings.controlsSettings.forward)) {
|
||||||
move.d.x -= 1;
|
move.d.x = 1;
|
||||||
}
|
}
|
||||||
if (Key.isDown(Settings.controlsSettings.backward)) {
|
if (Key.isDown(Settings.controlsSettings.backward)) {
|
||||||
move.d.x += 1;
|
move.d.x = 1;
|
||||||
}
|
}
|
||||||
if (Key.isDown(Settings.controlsSettings.left)) {
|
if (Key.isDown(Settings.controlsSettings.left)) {
|
||||||
move.d.y += 1;
|
move.d.y = 1;
|
||||||
}
|
}
|
||||||
if (Key.isDown(Settings.controlsSettings.right)) {
|
if (Key.isDown(Settings.controlsSettings.right)) {
|
||||||
move.d.y -= 1;
|
move.d.y = 1;
|
||||||
}
|
}
|
||||||
if (Key.isDown(Settings.controlsSettings.jump)
|
if (Key.isDown(Settings.controlsSettings.jump)
|
||||||
|| MarbleGame.instance.touchInput.jumpButton.pressed
|
|| MarbleGame.instance.touchInput.jumpButton.pressed
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue