Commit Graph

113 Commits

Author SHA1 Message Date
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
Hugo Locurcio
d15472a7b9 Document vibration in Controllers, gamepads and joysticks 2023-01-30 15:00:10 +01:00
Rudi
f51c77dd7f Replace ButtonList enum with MouseButton (#6334)
Replace `ButtonList` enum with `MouseButton`

Switched `ButtonList` enum to `MouseButton` since `MouseButton` is defined in `InputEventMouse`, while `ButtonList` was undefined in `Godot` namespace.
2023-01-28 22:38:23 +03:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Max Hilbrunner
af8ccbe56b Merge pull request #6396 from Sauermann/fix-input-event-tutorial
Update Input Event Tutorial
2023-01-09 23:03:44 +01:00
Curtis
4342e03419 Update C# code example
Use the `Root` property instead of the deprecated `GetRoot` method.
`PropagateNotification` accepts an `int` and not a `long`, and so `NotificationWmCloseRequest` needs to be cast to `int`.
2023-01-03 03:03:14 +10:00
Markus Sauermann
d2a75723da Update Input Event Tutorial 2022-11-29 16:34:25 +01:00
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner
6c13f5ba58 More Godot 4 renames and fixes (#6317)
* Move ImmediateGeometry -> ImmediateMesh

* More Godot 3 -> Godot 4 renames
2022-10-15 23:12:48 +02:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Markus Sauermann
631889be34 Fix usage of NOTIFICATION_WM_CLOSE_REQUEST
Propagation now works differently.
Also it no longer causes the application to quit.
2022-10-15 02:52:32 +02:00
takkun324
5401294067 Clearification of what an action actually is. (#6200)
* Clearification of what an action actually is.

There was no definition of an action itself. I also simplified the sentence, "An InputEvent may or may not represent a predefined action" to say that actions are not required but useful (combining with the next sentence).

Without the definition, I had thought actions were pre-defined input *conditions* (input states, rather than the input itself, since an action must have it's input defined). That mess of inquiry can be read here: https://www.reddit.com/r/godot/comments/xfvmg8/can_we_define_our_own_inputanalysis_for_inputmap/ Skip to first part of my last post to see the wording that corrected my understanding of what actions were.

This is my first-ever proposal. Thank you for the opportunity to contribute to the docs and help everyone understand things a little easier.
-- Kevin
2022-10-05 13:11:48 +02:00
Nicola Baribeau
74b79a439b Small edit to quit requests handling
Hey first edit here,

Here's a quick edit for something I just stumbled upon learning Godot 4, basically the notification MainLoop.NOTIFICATION_WM_QUIT_REQUEST changed to NOTIFICATION_WM_CLOSE_REQUEST. 

Would spare some people quite a bit of confusion I basically had to search through the source's commits since it not only moved but changed name.

It *is* already correctly listed in the Node page though.

I'm not really sure about the C# code examples though but I doubt it would be more complicated than this.
2022-08-24 18:43:18 +02:00