aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd
index fdb4df28..4ea07a4f 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -60,8 +60,10 @@ func _init():
update_fullscreen()
update_language()
+var focused_node: Control
func _ready():
get_viewport().gui_focus_changed.connect(Sound.play_hover_maybe)
+ get_viewport().gui_focus_changed.connect(func (node): focused_node = node)
func _input(_event):
if Input.is_action_just_pressed("fullscreen"):