102 Commits

Author SHA1 Message Date
Srđan Jokić
dc04c89210 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.

(cherry picked from commit 14e03b981f)
2024-07-24 21:09:20 +02:00
Max Hilbrunner
7ffd381554 Merge pull request #9245 from Calinou/update-assetlib-demo-urls
Update asset library demo URLs to point to Godot 4.x demos

(cherry picked from commit fb2b72bdb8)
2024-05-07 12:58:38 +02:00
Hugo Locurcio
31367798a7 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-25 10:12:56 +01:00
Max Hilbrunner
a623cc7ac9 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-25 10:11:51 +01: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
Hugo Locurcio
ec88857ba4 Remove outdated notice about lack of controller support on Apple M1
This also mentions that overriding force feedback (for steering wheels)
isn't supported yet.
2022-05-11 16:27:03 +02:00
Markus Sauermann
73f57ce0c4 Fix reference to MainLoop 2022-02-11 18:47:41 +01:00
Hugo Locurcio
31746843d0 Document keyboard ghosting caveats in Input examples 2022-01-04 22:37:23 +01:00
Schmake
00fb1025ce Fix spelling error in Using InputEvent (they -> the) (#5351) 2021-10-29 15:35:25 +02:00
Rémi Verschelde
9a05eef561 4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown
in screenshot fit what the code blocks are referring to.
2021-10-06 14:29:55 +02:00
Aaron Franke
5c7f653347 Optimize PNG and SVG images using oxipng and svgcleaner (#5254) 2021-09-14 17:50:17 +02:00
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
luzpaz
d9bc787dd9 Fix various typos (#5215)
Fix various typos

Found via `codespell -q 3 -S ./LICENSE.txt -L doubleclick,findn,lod,inout,nd,raison,te`
2021-09-02 17:02:23 +03:00
Hugo Locurcio
edb6c31b05 Document updating controller firmware in Controllers, gamepads and joysticks 2021-07-30 17:49:27 +02:00
Hugo Locurcio
b5a7873b42 Update Godot version caveats in Controllers, gamepads and joysticks
`Input.get_vector()` and `Input.get_axis()` were backported to the
`3.x` branch.
2021-07-24 08:56:58 +02:00
Marcin Sędłak-Jakubowski
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02:00