mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
Fix for input_mapping:
Fixed bug when you push a key before you press a button.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user