From ad3a18addb3d142d3fa7a50a5aea950c551ebdf2 Mon Sep 17 00:00:00 2001 From: Nathan Hoad Date: Thu, 12 Jan 2023 19:44:48 +1000 Subject: [PATCH] Fix missing event reference --- addons/input_helper/input_helper.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/input_helper/input_helper.gd b/addons/input_helper/input_helper.gd index 8347615..93e9740 100644 --- a/addons/input_helper/input_helper.gd +++ b/addons/input_helper/input_helper.gd @@ -99,7 +99,7 @@ func is_valid_key(key: String) -> bool: func get_action_key(action: String) -> String: for event in InputMap.get_action_list(action): if event is InputEventKey: - var scancode = OS.keyboard_get_scancode_from_physical(physical_scancode) if event.physical_scancode != 0 else event.scancode + var scancode = OS.keyboard_get_scancode_from_physical(event.physical_scancode) if event.physical_scancode != 0 else event.scancode return OS.get_scancode_string(scancode) return ""