Added UI focus tracking
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user