浏览代码

Fix for input_mapping:
Fixed bug when you push a key before you press a button.

TwistedTwigleg 7 年之前
父节点
当前提交
ed3461f7ab
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      gui/input_mapping/controls.gd

+ 3 - 0
gui/input_mapping/controls.gd

@@ -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)