Fix for input_mapping:

Fixed bug when you push a key before you press a button.
This commit is contained in:
TwistedTwigleg
2018-01-06 17:53:35 -05:00
parent 2181660344
commit ed3461f7ab

View File

@@ -99,3 +99,6 @@ func _ready():
var button = get_node("bindings").get_node(action).get_node("Button")
button.text = OS.get_scancode_string(input_event.scancode)
button.connect("pressed", self, "wait_for_input", [action])
# Do not start processing input until a button is pressed
set_process_input(false)