|
@@ -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
|
|
|
|