Skip to content

Commit f0b5879

Browse files
tetrapod00Calinou
andauthored
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 <hugo.locurcio@hugo.pro>
1 parent c77b4d1 commit f0b5879

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

getting_started/first_3d_game/02.player_input.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Save the scene as ``player.tscn``
8484
With the nodes ready, we can almost get coding. But first, we need to define
8585
some input actions.
8686

87+
.. _doc_first_3d_game_input_actions:
88+
8789
Creating input actions
8890
----------------------
8991

tutorials/inputs/inputevent.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ There are several specialized types of InputEvent, described in the table below:
194194
| | as feedback. (more on this below) |
195195
+-------------------------------------------------------------------+-----------------------------------------+
196196

197-
Actions
198-
-------
197+
Input actions
198+
-------------
199199

200-
Actions are a grouping of zero or more InputEvents into a commonly
200+
Input actions are a grouping of zero or more InputEvents into a commonly
201201
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
202202
InputEvent but are useful because they abstract various inputs when
203203
programming the game logic.
@@ -239,6 +239,12 @@ The Input singleton has a method for this:
239239
// Feedback.
240240
Input.ParseInputEvent(ev);
241241

242+
243+
.. seealso::
244+
245+
See :ref:`doc_first_3d_game_input_actions` for a tutorial on adding input
246+
actions in the project settings.
247+
242248
InputMap
243249
--------
244250

0 commit comments

Comments
 (0)