feat: add controller hotbar management

This commit is contained in:
Alexander Sellite 2026-08-08 16:20:40 -04:00
parent 4ac7d5edb8
commit ded8494cc6
4 changed files with 159 additions and 7 deletions

View file

@ -1102,6 +1102,9 @@ func _unhandled_input(event: InputEvent) -> void:
):
_game_ui.set_shop_prompt_visible(false)
get_viewport().set_input_as_handled()
elif event is InputEventJoypadButton and _player != null:
_player.hotbar.clear_slot(_player.hotbar.get_selected_slot())
get_viewport().set_input_as_handled()
func _process(_delta: float) -> void: