Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Godot version caveats in Controllers, gamepads and joysticks #5109

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorials/inputs/controllers_gamepads_joysticks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Input actions are explained in detail on the :ref:`doc_inputevent` page.
Which Input singleton method should I use?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In Godot 4.0, there are 3 ways to get input in an analog-aware way:
There are 3 ways to get input in an analog-aware way:

- When you have two axes (such as joystick or WASD movement) and want both
axes to behave as a single input, use ``Input.get_vector()``:
Expand Down Expand Up @@ -130,9 +130,9 @@ use ``Input.is_action_pressed()``:
held,``Input.is_action_just_pressed()`` will only return ``true`` for one
frame after the button has been pressed.

In Godot versions before 4.0, such as 3.2, ``Input.get_vector()`` and
In Godot versions before 3.4, such as 3.3, ``Input.get_vector()`` and
``Input.get_axis()`` aren't available. Only ``Input.get_action_strength()``
and ``Input.is_action_pressed()`` are available in Godot 3.2.
and ``Input.is_action_pressed()`` are available in Godot 3.3.

Calinou marked this conversation as resolved.
Show resolved Hide resolved
Differences between keyboard/mouse and controller input
-------------------------------------------------------
Expand Down