- Edited
I'm working on making a menu for rebinding keys etc. I need to get the current bind and convert it to human readable (so not a keycode). What I thought I could do was:
OS.get_keycode_string(ProjectSettings.get_setting("input/Left")["events"][0].keycode)
and this would just give 'A' or whatever it's bound too during _ready
. If I run
print(ProjectSettings.get_setting("input/Left")["events"][0])
it prints a normal looking InputEventKey
, but when I access it manually with .keycode
, it always says 0. Why is this happening?