Преглед на файлове

Merge pull request #2469 from HeartoLazor/patch-1

Updated set_as_action code
Rémi Verschelde преди 6 години
родител
ревизия
8447a79e59
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      tutorials/inputs/inputevent.rst

+ 2 - 1
tutorials/inputs/inputevent.rst

@@ -185,7 +185,8 @@ The Input singleton has a method for this:
 
     var ev = InputEventAction.new()
     # set as move_left, pressed
-    ev.set_as_action("move_left", true)
+    ev.action = "move_left"
+    ev.pressed = true
     # feedback
     Input.parse_input_event(ev)