Skip to content

Add joypad motion sensors tutorial#11692

Merged
skyace65 merged 1 commit intogodotengine:masterfrom
Nintorch:joypad-motion-sensors
Feb 28, 2026
Merged

Add joypad motion sensors tutorial#11692
skyace65 merged 1 commit intogodotengine:masterfrom
Nintorch:joypad-motion-sensors

Conversation

@Nintorch
Copy link
Contributor

@Nintorch Nintorch commented Jan 28, 2026

Partially addresses #11466
Follow-up to godotengine/godot#111679

The gyroscope calibration explanation was borrowed from https://github.com/JibbSmart/GamepadMotionHelpers?tab=readme-ov-file#gyro-calibration

TODO:

@Nintorch
Copy link
Contributor Author

Thank you for your review, AThousandShips! I will be able to fix the text in the PR soon!

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch 2 times, most recently from 0d68400 to 8f5a6f0 Compare January 28, 2026 11:06
@skyace65 skyace65 added this to the 4.7 milestone Jan 29, 2026
@skyace65
Copy link
Contributor

Might be a bit before this gets merged since it's for 4.7

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from 0039ac9 to 89eb679 Compare January 29, 2026 18:48
@Nintorch
Copy link
Contributor Author

Thank you for your review, Calinou! I applied your suggestions! :)

@skyace65 skyace65 added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Feb 1, 2026
Copy link
Contributor

@Meorge Meorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've included some comments/suggestions I have for improving the flow and wording.

This might be something to take a closer look at later after suggestions have been evaluated, but I felt like the accelerometer section spent longer on background information than the gyroscope section did. It'd probably make sense to restructure them a bit so that they are more consistent with their balance of "theory" (discussing what the sensor is, how it works, etc) and "practice" (examples, code snippets, etc).

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from f3a3525 to 2169a66 Compare February 16, 2026 12:27
@Nintorch
Copy link
Contributor Author

Nintorch commented Feb 16, 2026

Thank you for your review, Meorge! I included your suggestions into the code! :)

By the way, here's the website that I used for gyroscope usage examples: https://www.pcgamingwiki.com/wiki/List_of_games_that_support_tracked_motion_controllers_in_non-VR_gameplay#DualShock_4

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from 2169a66 to cad3aaf Compare February 16, 2026 12:43
Copy link
Contributor

@Meorge Meorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few more little tweaks/suggestions 🙂

In a few spots I removed instances of things like "we" for succinctness; I don't recall off-hand what the official Godot manual style says about those. If it is indeed supposed to avoid that sort of phrasing, there are a few other spots in here that can be changed.

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from cad3aaf to 0220b24 Compare February 17, 2026 18:13
@Nintorch Nintorch requested a review from Calinou February 24, 2026 13:30
Comment on lines 207 to 209
- Movement left and right are reported as **+X** and **-X**.
- Movement down and up are reported as **+Y** and **-Y**.
- Movement away from and towards the user are reported as **+Z** and **-Z**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to be the opposite of the diagram (for example, here it says that left is +X, but the diagram says right is +X). Which one is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text one is correct.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case we should probably reach out to @Cykyrios so they can update the diagram.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did :D
#11692 (comment)

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me in terms of content. I requested some stylistic changes. Also, all tabs should be replaced by 4 spaces in code samples (we currently follow different guidelines in the docs compared to the engine). Trailing whitespace should also be removed.

Comment on lines 177 to 178
See `the article on GyroWiki here <http://gyrowiki.jibbsmart.com/blog:good-gyro-controls-part-1:the-gyro-is-a-mouse>`
for information on how to use gyroscope input as a mouse.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See `the article on GyroWiki here <http://gyrowiki.jibbsmart.com/blog:good-gyro-controls-part-1:the-gyro-is-a-mouse>`
for information on how to use gyroscope input as a mouse.
See `the article on GyroWiki <http://gyrowiki.jibbsmart.com/blog:good-gyro-controls-part-1:the-gyro-is-a-mouse>`__
for information on how to use gyroscope input as a mouse.

PS: That website triggers an HTTP-only warning on Firefox in strict mode. @JibbSmart Could you look into setting up HTTPS with e.g. Let's Encrypt? This would avoid the warning.

@AL2009man
Copy link

AL2009man commented Feb 25, 2026

might wanna include Fortnite as part of the example, given it's one of the biggest multiplayer game to include Gyro Aiming and is set as baseline example on how to do Gyro Aim.

that, and it's created by the person behind GamepadMotionHelper.

@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from 0220b24 to e4d9d98 Compare February 26, 2026 07:03
@Nintorch Nintorch requested a review from Calinou February 26, 2026 07:05
@Nintorch Nintorch force-pushed the joypad-motion-sensors branch 2 times, most recently from 89bec82 to f9cc280 Compare February 26, 2026 07:09
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nintorch
Copy link
Contributor Author

Thank you for your review, AThousandShips! :)

Co-Authored-By: Malcolm Anderson <malcolminyo@gmail.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-Authored-By: Cyril Bissey <53737317+Cykyrios@users.noreply.github.com>
Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
@Nintorch Nintorch force-pushed the joypad-motion-sensors branch from f9cc280 to 4848b70 Compare February 26, 2026 10:04
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@Nintorch
Copy link
Contributor Author

Thank you for your review, Calinou! :)

@skyace65 skyace65 merged commit 10eee18 into godotengine:master Feb 28, 2026
1 check passed
@skyace65
Copy link
Contributor

Thanks!

@Nintorch Nintorch deleted the joypad-motion-sensors branch March 1, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants