Skip to content

Commit

Permalink
Fix missing event reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhoad committed Jan 12, 2023
1 parent 434ea9a commit ad3a18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/input_helper/input_helper.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down

0 comments on commit ad3a18a

Please sign in to comment.