Prepare Android controller and export support

This commit is contained in:
Alexander Sellite 2026-08-03 02:14:38 -04:00
parent c84f305c34
commit d24f2f50c0
9 changed files with 192 additions and 11 deletions

View file

@ -193,6 +193,14 @@ func _unhandled_input(event: InputEvent) -> void:
or not _fishing_spot.can_change_hotbar_selection()
):
return
if event.is_action_pressed("hotbar_previous"):
_hotbar.cycle_selection(-1)
get_viewport().set_input_as_handled()
return
if event.is_action_pressed("hotbar_next"):
_hotbar.cycle_selection(1)
get_viewport().set_input_as_handled()
return
if event is InputEventKey and event.pressed and not event.echo:
for index: int in range(PlayerHotbarType.SLOT_COUNT):
if event.is_action_pressed("hotbar_%d" % (index + 1)):