diff --git a/learning/features/inputs/inputevent.rst b/learning/features/inputs/inputevent.rst index e4bb66af9..c7d7cd878 100644 --- a/learning/features/inputs/inputevent.rst +++ b/learning/features/inputs/inputevent.rst @@ -135,8 +135,8 @@ Any event has the methods :ref:`InputEvent.is_action() `. You would normally use it like this: +The Input singleton has a method for this: +:ref:`Input.parse_input_event() `. You would normally use it like this: :: @@ -145,7 +145,7 @@ SceneTree (derived from MainLoop) has a method for this: # set as move_left, pressed ev.set_as_action("move_left", true) # feedback - get_tree().input_event(ev) + Input.parse_input_event(ev) InputMap --------