From faa17097c36e78fb9aa7a9edb3da8802ea0d9689 Mon Sep 17 00:00:00 2001 From: Hearto Date: Mon, 20 May 2019 18:38:35 -0400 Subject: [PATCH] Updated set_as_action code Fixed code example using set_as_action. Issue fixed: https://github.com/godotengine/godot-docs/issues/2435 --- tutorials/inputs/inputevent.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/inputs/inputevent.rst b/tutorials/inputs/inputevent.rst index b64d00205..41e8b7289 100644 --- a/tutorials/inputs/inputevent.rst +++ b/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)