feat: add controller hotbar management
This commit is contained in:
parent
4ac7d5edb8
commit
ded8494cc6
4 changed files with 159 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue