mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Updated set_as_action code
Fixed code example using set_as_action. Issue fixed: https://github.com/godotengine/godot-docs/issues/2435
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user