From ffff2e7afda0b8ac5363aa4eb38580561f878d6b Mon Sep 17 00:00:00 2001 From: tetrapod <145553014+tetrapod00@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:38:49 -0800 Subject: [PATCH] Link to Getting Started Input tutorial from Input examples page (#10200) * Link to Getting Started Input tutorial from Input examples page --------- Co-authored-by: Hugo Locurcio --- getting_started/first_3d_game/02.player_input.rst | 2 ++ tutorials/inputs/inputevent.rst | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/getting_started/first_3d_game/02.player_input.rst b/getting_started/first_3d_game/02.player_input.rst index a9d49650e..558f94d70 100644 --- a/getting_started/first_3d_game/02.player_input.rst +++ b/getting_started/first_3d_game/02.player_input.rst @@ -84,6 +84,8 @@ Save the scene as ``player.tscn`` With the nodes ready, we can almost get coding. But first, we need to define some input actions. +.. _doc_first_3d_game_input_actions: + Creating input actions ---------------------- diff --git a/tutorials/inputs/inputevent.rst b/tutorials/inputs/inputevent.rst index 8f49916ff..1116a9025 100644 --- a/tutorials/inputs/inputevent.rst +++ b/tutorials/inputs/inputevent.rst @@ -194,10 +194,10 @@ There are several specialized types of InputEvent, described in the table below: | | as feedback. (more on this below) | +-------------------------------------------------------------------+-----------------------------------------+ -Actions -------- +Input actions +------------- -Actions are a grouping of zero or more InputEvents into a commonly +Input actions are a grouping of zero or more InputEvents into a commonly understood title (for example, the default "ui_left" action grouping both joypad-left input and a keyboard's left arrow key). They are not required to represent an InputEvent but are useful because they abstract various inputs when programming the game logic. @@ -239,6 +239,12 @@ The Input singleton has a method for this: // Feedback. Input.ParseInputEvent(ev); + +.. seealso:: + + See :ref:`doc_first_3d_game_input_actions` for a tutorial on adding input + actions in the project settings. + InputMap --------