I'm trying to add a menu for redefining the keys for my game, and found this documents page that gives me code for that, however, it doesn't work...
Here is my code:
func _input(event):
if buttonPressable:
if takingInputs:
if event.type == InputEvent.KEY:
event.type = InputEvent.ACTION
event.set_as_action(action, true)
takingInputs = false
buttonPressed = false
buttonPressable = false
option.reshowItem(str(key))
hide()
What am I doing wrong?