Added UI focus tracking

This commit is contained in:
2024-02-25 19:47:13 +01:00
parent dc252ab5d3
commit 44fd041c60
10 changed files with 79 additions and 28 deletions

View File

@ -12,7 +12,8 @@ func _init(new_player: Player):
name = "Controller"
func _unhandled_input(event: InputEvent):
if Global.interacting_with_ui:
if UI.focus:
direction_changed.emit(Vector3.ZERO)
return
update_direction()