Commit Graph

77 Commits

Author SHA1 Message Date
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
cosmicr
9b2d058da2 Update inputevent.rst (#5043)
* Update inputevent.rst

Added object picking must be turned on in viewport properties

Add project settings reference

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2021-07-06 03:23:53 +02:00
Rémi Verschelde
044b6a74f8 Cleanup uses of double spaces between words or after punctuation 2021-06-07 10:44:02 +02:00
Rémi Verschelde
722df7673d Merge pull request #4948 from DeeJayLSP/master
Give input event flow graph a background to make it visible on dark theme
2021-06-02 11:25:32 +02:00
Douglas
d22be3aeee Give input event flow graph a background to make it visible on dark theme 2021-06-02 11:22:59 +02:00
Hugo Locurcio
6babc68649 Rename documentation pages that have the same name as classref pages
This prevents confusion in search engine results.
2021-05-26 16:59:08 +02:00
insomniac_lemon
ea1ae27270 Add info on sending quit requests properly in Handling quit requests (#4911)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-05-14 21:44:40 +02:00
Nathan Lovato
65bdac51d7 Merge pull request #4649 from Calinou/controllers-add-is-action-just-pressed
Mention `Input.is_action_just_pressed()` on the Controllers page
2021-02-26 14:43:29 -06:00
Hugo Locurcio
c6fedd287e Clarify deadzone difference for Input.get_vector() in Controllers (#4651)
See
https://github.com/godotengine/godot-docs/pull/4620#discussion_r575847917.
2021-02-16 19:57:03 +01:00
Hugo Locurcio
04d4f2b6f5 Mention Input.is_action_just_pressed() on the Controllers page 2021-02-14 18:04:58 +01:00
Hugo Locurcio
6d45a91d1e Fix incorrect code block tab syntax in Controllers documentation (#4643) 2021-02-13 15:54:55 +01:00
Hugo Locurcio
53c1af720e Add a page about gamepad/controller support in Godot (#4620) 2021-02-13 02:11:07 +01:00
Beuc
cdb9024360 inputevent: Fix/update default signal name (#4634)
See
5260b6e046/scene/gui/control.cpp (L3038)
5260b6e046/scene/main/viewport.cpp (L2373)
2021-02-08 13:19:09 +01:00
Nathan Lovato
359f09343a Fix typo in input_examples.rst 2021-01-21 11:48:45 -06:00
Feniks
f830197075 Fix C# condition being as instead of is in Input examples (#4362) 2020-11-13 15:25:00 +01:00
Nathan Lovato
ac3cbb8195 Merge branch 'master' into InputEventKey.keycode 2020-11-05 10:08:37 -06:00
Robert Colton
79c1ae2777 Update the Input Map tab name in the InputEvent documentation (#4257)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2020-10-11 20:26:24 +02:00
Nathan Lovato
81f764e270 Move handling_quit_requests to inputs 2020-10-08 14:14:44 -06:00
Rémi Verschelde
79113672ff Fix C# code in Input examples
And work around two other warnings, making the build warning free.
2020-07-15 10:34:38 +02:00
Michael Alexsander
1f6d3995e4 Apply general code formatting to some pages in the tutorial section 2020-07-08 23:02:14 -03:00
baldanders-skulltuna
a1312d6f90 Fix spelling in C# code sample in the Input examples tutorial (#3735)
`(Keylist)keyEvent.Scancode` -> `(KeyList)...`

Project does not compile otherwise.
2020-06-27 14:30:19 +02:00
Paul Joannon
a19d7496d6 rename InputEventKey.scancode into keycode
This change was introduced in godotengine/godot@1af06d3d.

As I was editing the tutorials/inputs/input_examples.rst file I noticed that some C# snippets were triggering lexer errors. It was because they were using string interpolation (with $"") so I changed that as well.
2020-06-16 19:37:19 +02:00
Hugo Locurcio
18af843dd0 Describe the differences between hardware and software mouse cursors 2020-05-30 16:23:12 +02:00
Yuri Sizov
135b33b768 Replace British spelling and fix various typos 2020-04-27 12:18:52 +03:00
Hugo Locurcio
046215542d Fix some typos and grammar mistakes found using LanguageTool 2020-04-16 23:07:05 +02:00
Yuri Sizov
37604be65f Improved keystroke formatting for shortcuts and key press menti… (#3257) 2020-03-09 23:50:53 +01:00