Browse Source

:wrench: Use right trigger to thrust ship

DricomDragon 1 year ago
parent
commit
998a6bd8d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      godot/component/control/gamepad/gamepad_control.gd

+ 2 - 2
godot/component/control/gamepad/gamepad_control.gd

@@ -14,8 +14,8 @@ func _unhandled_input(event: InputEvent) -> void:
 		if joyEvent.get_axis() == JOY_AXIS_LEFT_X:
 			_last_dir.x = joyEvent.get_axis_value()
 			dir_changed.emit(_last_dir)
-		elif joyEvent.get_axis() == JOY_AXIS_LEFT_Y:
-			_last_dir.y = -joyEvent.get_axis_value()
+		elif joyEvent.get_axis() == JOY_AXIS_TRIGGER_RIGHT:
+			_last_dir.y = joyEvent.get_axis_value()
 		else:
 			return