Commit Graph

125 Commits

Author SHA1 Message Date
Hugo Locurcio
0b0625ca9d Update Controllers, gamepads and joysticks for SDL 3
- Mention SDL 3 is now used for input on desktop platforms.
- Mention that mobile/web platforms may have less reliable controller
  support as they don't use SDL yet, but it's planned.
2025-09-01 19:13:47 +02:00
Hana - Piralein
cd3e94b4a1 add missing brackets in c sharp code 2025-07-14 20:29:57 +02:00
Andrew Conlin
f4b57a9456 [2025-07-07] Add curly brackets to mouse and input coordinates C# code 2025-07-07 12:38:27 +01:00
willnationsdev
91932021ee Fix missing apostrophe. 2025-05-03 17:54:37 -05:00
MJacred
48150d5cf2 Fix URL to gamepad tester website 2025-04-30 13:01:53 +02:00
Artsiom Babukh
bbb720ec7f Add missing InputEvent.is_echo()
Seems that it was accidentally removed in 4b8ffe3600
2025-02-15 10:10:11 +01:00
Hugo Locurcio
cbdec4e72e Point mapping contributions to Godot in Controllers, gamepads and joysticks
GameControllerDB's upstream does not accept contributions from Godot
since it does not use SDL. Users can still create custom mappings,
but they should be submitted to Godot's controller database instead
of the SDL one.

This also adds a reference to `godotcontrollerdb.txt` which was missing
in the first place. This file is used as a complement to `gamecontrollerdb.txt`.
2025-01-29 21:57:40 +01:00
Mark Wilson
1fe10df90d Fix description of GUI input propagation (#7899)
* Fix: Propagation of _gui_input()

_gui_input() calls only propagate up the scene tree for mouse events
with appropriate filter flags. Keyboard and controller events do not
propagate through _gui_input().

Places entire description of _gui_input() propagation in one location,
marks it as a note to separate it from surrounding input propagation,
and updates the description to include behavior of keyboard and
controller events.
2025-01-25 11:51:36 -05:00
gomakappa
7d38ce8fef upload images and edit pages 2025-01-04 16:20:39 -03:00
Max Hilbrunner
c477a8ef60 Merge pull request #10282 from tetrapod00/expand-project-settings
Overhaul Project Settings page
2025-01-03 10:42:08 +01:00
tetrapod00
c4d3aa134a Standardize RST header syntax 2024-12-29 13:44:09 -08:00
tetrapod00
42abf26423 Update Project Settings page
- Add screenshots
- Document reading and writing settings
- Document manually editing project.godot
- Note that most settings are changed in different
classes at runtime
2024-11-17 22:29:44 -08:00
Max Hilbrunner
b2647ddc64 Merge pull request #9756 from ztc0611/fix-quit-requests-mobile
Fix Typo and add information to Handling quit requests/On mobile devices
2024-11-17 13:53:37 +01:00
tetrapod00
5994348764 Change all usages of "run-time" to "runtime" 2024-11-06 23:36:58 -08:00
tetrapod
f0b5879b85 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>
2024-11-05 00:38:49 +01:00
tetrapod00
c2262e286f Improve Customizing the mouse cursor
Link to project settings and enum.
Fix C# example script so it works when pasted.
Improve grammar and formatting.
2024-11-03 13:26:39 -08:00
tetrapod00
3bc5ea85af Remove references to 3.x minor versions
Removes notes about features being introduced in 3.x minor versions. In 4.x, these
details are no longer relevant.
2024-10-20 15:35:32 -07:00
Rooni
2bc63a080c Fix indentation on mouse_and_input_coordinates.rst
There was a space missing, causing inconsistent indentation and making the code not copy pastable.
2024-10-01 21:38:43 +02:00
Zach Coleman
b6f87336ef Update handling_quit_requests.rst 2024-08-15 12:57:11 -07:00
Srđan Jokić
14e03b981f Docs - Fixed input action C# issue
The `SetAction` and `SetPressed` are internal methods and can't be invoked directly outside of that assembly. However, the `Action` and `Pressed` property setters invoke them instead.
2024-07-14 10:27:30 +02:00
Hugo Locurcio
8fdd378fa3 Update asset library demo URLs to point to Godot 4.x demos 2024-04-18 03:34:54 +02:00
A Thousand Ships
bd6cc665a7 Fix incorrect uses of a/an 2024-03-29 15:14:27 +01:00
Zach Coleman
c6ba2d4092 Update handling_quit_requests.rst 2024-02-21 12:03:35 -05:00
Hugo Locurcio
7bfebadbff Document Windows limitation to 4 controllers in Controllers, gamepads and joysticks (#8594)
* Document Windows limitation to 4 controllers in Controllers, gamepads and joysticks

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Matthew <matthewehr@hotmail.com>
2024-01-14 00:23:56 +01:00
Max Hilbrunner
b1b0b0a78a Merge pull request #8607 from ShatReal/fix-using-inputevent
Areas have the input pickable property set to true as default, so I removed the part that said they didn't.
2024-01-14 00:16:13 +01:00
Hugo Locurcio
95fb178429 Add support for user-provided comments with Giscus
This allows users to leave comments on pages that don't have
`:allow_comments: False` somewhere in the page's source.
Both manual and class reference pages can receive comments.
Index pages cannot have comments, as discussion should occur on "leaf" pages.

GitHub Discussions is used as a backend on the same repository. This means
that Discussions *must* be enabled on godotengine/godot-docs before this
commit is merged to `master`. Users can choose to use the "Custom" watch
mode if they don't want to get notifications for discussion updates,
but still get notifications for issue and pull request updates.

User comments are intended to be used for the following purposes:

- Add a clarification or correct something in the documentation,
  without having to open a pull request. Contributors are encouraged to
  take a look at discussions from time to time, and see if there's information
  worth incorporating in the pages themselves. Don't forget to reply to
  the comment when doing so :)
- Mention a workaround for a common issue.
- Link to useful third-party resources that are relevant to the current page,
  such as tutorials or add-ons.

User comments should *not* be used for technical support. Other community
platforms should be used for that.

Page-to-discussion matching is done using the `pagename` Sphinx variable,
which is independent of the Godot version and documentation language.
Being independent of the Godot version allows keeping old comments
when the Godot version changes, while also allowing users from `/stable`
and `/4.1` to "see" each other in discussions.

See https://giscus.app for more information.
2024-01-11 17:51:53 +01:00
Emily
e6990c1339 Removed the part about areas not having the input event function called by default, it's not true 2023-12-11 17:09:46 -08:00
Yuri Sizov
cd92be066d Update references to private class methods across the docs 2023-11-10 16:06:36 +01:00
Daniel The Fox
f76100a990 Remove outdated demo project reference
The reference to a custom mouse cursor demo project provided is outdated. I believe it should be removed until there's an up-to-date working demo project for custom mouse cursor that can be shared.
2023-11-05 12:06:31 +01:00
A Thousand Ships
c3e08bd874 [Input] Fix incorrect setter usage in C# 2023-10-24 16:33:44 +02:00
Hex-4
2e29e988f9 update mouse and input coords page (again) 2023-10-07 13:10:42 -06:00
Hex-4
a5811a29fb close #8074, update mouse and input coordinates page 2023-10-05 23:09:07 +00:00
profande
eb1dec4da2 Correct mouse_and_input_coordinates.rst 2023-09-21 13:20:00 -04:00
BuildTools
f3f2dad37e Modified the event_is_action_pressed() function within the window focus section since it was not using the event parameter. 2023-09-17 22:53:27 +01:00
Markus Sauermann
512a675e10 Update input event tutorial
Update input event flow graphic based on recent changes.
Made some descriptions more precise.

Input Event table:
- Added missing InputEvents Gesture, MIDI and Shortcut
- Removed unused Type Index column
2023-08-20 16:17:48 +02:00
br1trs
92d962ab75 delete get_root()
handling quit requests

multiple resolutions

change scenes manually

scene tree
2023-05-29 23:26:04 -06:00
Max Hilbrunner
f7611bb4ad Merge pull request #7200 from MisoMosiSpy/input_example_keymodifiers 2023-05-18 10:49:15 +02:00
Hugo Locurcio
e606097168 Fix missing word in Window focus section of Controllers, gamepads and joysticks 2023-05-08 23:20:26 +02:00
Hugo Locurcio
50b7c155ad Document focus and sleep caveats in Controllers, gamepads and joysticks
- Improve line wrapping for long lines in scripts.
- Remove outdated paragraphs about Godot 3.3 changes.
2023-05-06 02:11:19 +02:00
Calcilore
61b447f4a5 Fix typo in inputevent.rst
Indivitual was changed to Individual
2023-04-25 04:04:56 +10:00
Dipal Zambare
2c1554680e Update custom mouse cursor selection screenshot 2023-04-21 13:11:46 +02:00
Dipal Zambare
6830513c08 Fix Keyboard modifiers example 2023-04-21 12:56:08 +02:00
Hugo Locurcio
1bd3513507 Mention maximum recommended size of 128×128 in Customizing the mouse cursor
Sizes larger than 128×128 are not supported in web exports and can exhibit
rendering issues on desktop platforms.
2023-04-21 02:07:01 +02:00
John Veness
05153f071e Fix backquoted text in Controllers doc
It seems the space is required before the backquotes
2023-04-18 20:05:59 +01:00
Yu umo
875df05d40 Update inputevent.rst (#7126)
A samll spelling mistake.
2023-04-06 14:44:54 -07:00
notPelf
b146d3f359 Updated MouseButton enum values in input examples
MouseButton enums were not updated in the input examples page, i.e. BUTTON_LEFT should be MOUSE_BUTTON_LEFT, etc
2023-03-19 12:28:55 -04:00
Tobi-Mob
56ef128796 Fixed NotificationWMCloseRequest c# code
With Godot 4.0 the casing seems to have changed from Wm to WM.
2023-03-04 11:34:20 +01:00
Yuri Sizov
d524544e07 Improve naming and organization of some manual articles
HTML5/Web moved to their own subfolder
Global Illumination moved to their own subfolder
UI, IO, Inputs sections titles adjusted
2D, 3D tutorials grouped to improve navigation
2023-02-26 22:50:18 +01:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Hugo Locurcio
6e3881b06a Fix default deadzone value in Controllers, gamepads and joysticks (#6701) 2023-02-01 16:01:54 +01:00