Commit graph

39872 commits

Author SHA1 Message Date
kobewi
59a9b2192e Add physics material to GridMap 2021-12-17 01:50:58 +01:00
Rémi Verschelde
ed395c6b99
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@265b43b789.
2021-12-17 00:14:44 +01:00
Rémi Verschelde
33e03386b3
Merge pull request #55966 from bruvzg/wt💩4 2021-12-16 23:05:24 +01:00
Rémi Verschelde
350013f5f2
Merge pull request #55980 from slouken/fix-xinput-detection
Fixed detecting the Valve Streaming Gamepad
2021-12-16 19:50:33 +01:00
Rémi Verschelde
9c9cc1b222
Merge pull request #55978 from slouken/fix-switch-controller-event-spam
Fixed event spam when using the Nintendo Switch controller
2021-12-16 19:49:47 +01:00
Sam Lantinga
313815f818 Fixed event spam when using the Nintendo Switch controller
There is no filtering on the Nintendo Switch Pro controller thumbstick, so there will frequently be events with very slight change. These are turned into "not pressed" events, which cancel "pressed" events from keys and buttons.

This change filters out up to 5% jitter, but it might be worth revisiting whether "not pressed" events should cancel "pressed" events.
2021-12-16 09:04:58 -08:00
Sam Lantinga
8df0baf6f5 Fixed detecting the Valve Streaming Gamepad
Fixed the GUID, and compare the contents of the GUID, not just the pointers
2021-12-16 08:52:47 -08:00
Rémi Verschelde
bc2ac26964
i18n: Sync classref translations with current 3.4 docs
(cherry picked from commit f8b4412b51)
2021-12-16 17:06:18 +01:00
Rémi Verschelde
c33e84fe8c
Merge pull request #55165 from Calinou/doc-gui-theme-item-focus-transparent 2021-12-16 15:39:48 +01:00
Rémi Verschelde
61c8ea7b14
i18n: Sync classref translations with Weblate
(cherry picked from commit 9f838dbece)
2021-12-16 15:16:04 +01:00
Rémi Verschelde
6214727c80
i18n: Sync editor translations with Weblate
(cherry picked from commit 8a30e04fd1)
2021-12-16 15:16:02 +01:00
Rémi Verschelde
feff06b5e7
Merge pull request #55992 from KoBeWi/node_hide_and_seek 2021-12-16 15:14:28 +01:00
kobewi
e7722a9a7b Mention what happens if find_node() fails 2021-12-16 13:37:54 +01:00
Rémi Verschelde
be83968b6b
Merge pull request #55970 from Chaosus/shader_fix_struct_warning 2021-12-16 13:35:44 +01:00
Rémi Verschelde
91c0529073
Merge pull request #55930 from timothyqiu/doctool-i18n 2021-12-16 13:08:53 +01:00
Yuri Roubinsky
6435d1be23
Merge pull request #55982 from Chaosus/vs_texture_filtering 2021-12-16 13:53:47 +03:00
Haoyu Qiu
e4e4e475f8 Make --doctool locale aware
* Adds `indent(str)` to `String`:
    * Indent the (multiline) string with the given indentation.
    * This method is added in order to keep the translated XML correctly
      indented.
* Moves the loading of tool/doc translation into
  `editor/editor_translation.{h,cpp}`.
    * This will be used from both `EditorSettings` and the doc tool from
      `main`.
* Makes use of doc translation when generating XML class references, and
  setup the translation locale based on `-l LOCALE` CLI parameter.

The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.
2021-12-16 17:49:22 +08:00
Fabio Alessandrelli
75ed3d74e8
Merge pull request #55747 from timothyqiu/editor-proxy
Add proxy support for the editor
2021-12-16 10:06:14 +01:00
Yuri Roubinsky
1eb40904ce Add texture filtering properties to VisualShaderNodeTextureUniform 2021-12-16 11:50:33 +03:00
Max Hilbrunner
edd3ca4501
Merge pull request #55974 from skyace65/ScriptDoc
Clarify that the script class should not be used directly
2021-12-16 07:35:10 +01:00
Max Hilbrunner
cedd690d3a
Merge pull request #55811 from nathanfranke/os-documentation
Fix OS.get_name and OS.get_user_data_dir documentation
2021-12-16 07:32:11 +01:00
Yuri Roubinsky
765032ae95
Merge pull request #55969 from Chaosus/shader_anisotropic 2021-12-16 07:06:43 +03:00
skyace65
9f983eea8c Clarify that the script class should not be used directly 2021-12-15 22:17:34 -05:00
Nathan Franke
f8f2656eab Fix OS.get_name and OS.get_user_data_dir documentation 2021-12-15 13:56:52 -08:00
Yuri Roubinsky
1414a7be91 Fix struct usage passing to shader warning system 2021-12-15 22:54:46 +03:00
Rémi Verschelde
e311389580
Merge pull request #55183 from madmiraal/fix-41421
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 20:25:59 +01:00
Rémi Verschelde
deb30a4108
Merge pull request #52015 from mechPenSketch/expose_hotzones2
Expose connection hot zones in `GraphNode`
2021-12-15 20:23:07 +01:00
Yuri Roubinsky
f0a58af12f Rename shader hint filter_anisotropy to filter_anisotropic 2021-12-15 22:12:38 +03:00
Marcel Admiraal
6e38fc4b80 Only rotate Android sensor values for sensors that need them rotated 2021-12-15 18:15:08 +00:00
bruvzg
1fdb6a99c8
[Windows] Detect new Windows Terminal and disable unsupported set_console_visible code. 2021-12-15 20:00:57 +02:00
Hugo Locurcio
a1ab50a9f0
Document that transparent StyleBoxes/textures should be used for UI focus 2021-12-15 18:22:39 +01:00
Yuri Roubinsky
1cbf3947d6
Merge pull request #55957 from Chaosus/shader_fix_arrays 2021-12-15 19:28:09 +03:00
Rémi Verschelde
9b932aa0db
Merge pull request #55958 from timothyqiu/xml-indents 2021-12-15 17:12:56 +01:00
Fabio Alessandrelli
c5879dbe07
Merge pull request #53129 from Faless/net/4.x_enet_opts
[Net] ENet poll optimizations, fragmented unreliable transfer.
2021-12-15 16:02:55 +01:00
Yuri Roubinsky
25a2241e7d Fix shader array parsing in variable declaration 2021-12-15 17:54:15 +03:00
Haoyu Qiu
4e393ab4a0 Fix indentations in class reference XMLs 2021-12-15 22:26:54 +08:00
Rémi Verschelde
e55ecd117f
Merge pull request #55948 from timothyqiu/shortcut-drives 2021-12-15 15:21:39 +01:00
Haoyu Qiu
67f04b381b Add / to the unix shortcut drive list
Also made `get_current_drive()` to pick the longest match on Unix.
2021-12-15 21:13:35 +08:00
Jordan Schidlowsky
373d5ea103 [Net] ENet poll now only service the connection once.
It used to call `enet_host_service` until all events were consumed, but
that also meant constantly polling the connection leading to potentially
unbounded processing time.

It now only service the connection once, and instead consumes all the
retrieved events via `enet_host_check_events`.
2021-12-15 14:03:42 +01:00
Jordan Schidlowsky
397d895fb7 [Net] ENetMultiplayerPeer now sends fragmented packets unreliably too.
It used to always send them reliably when transfer mode was unreliable
or ordered if the packet size was more then the enet host MTU (1400
bytes by default).

This commit also adds a warning when debug is enabled to explain the
effects of sending fragmented packets unreliably.
2021-12-15 14:03:42 +01:00
Rémi Verschelde
de8348a9b3
Merge pull request #55903 from Chaosus/shader_struct 2021-12-15 13:07:48 +01:00
Rémi Verschelde
864ccb5776
Merge pull request #55913 from Chaosus/fix_shader_crash 2021-12-15 13:07:34 +01:00
Rémi Verschelde
7f97f40eb6
Merge pull request #55927 from pycbouh/editor-add-theme-type-communication 2021-12-15 13:01:09 +01:00
Rémi Verschelde
815bc082e8
Merge pull request #55951 from Chaosus/shader_hint_aniso 2021-12-15 12:53:59 +01:00
Rémi Verschelde
703a1be507
Merge pull request #55952 from Faless/net/4.x_webrtc_mp_connect_fix 2021-12-15 12:38:10 +01:00
Rémi Verschelde
859549e136
Merge pull request #55905 from bruvzg/ts_substring_reshape 2021-12-15 11:53:53 +01:00
Fabio Alessandrelli
f9c05333ef
Merge pull request #55657 from MorganKF/patch-multiplayer-peer-extension
Patch `MultiplayerPeerExtension` to allow derived classes
2021-12-15 11:40:52 +01:00
Yuri Roubinsky
09185d76ac Rename shader hint filter_aniso to filter_anisotropy 2021-12-15 13:18:32 +03:00
Rémi Verschelde
681d00bd91
Merge pull request #55940 from Calinou/editor-spin-slider-tweak-grabber 2021-12-15 11:11:06 +01:00
Fabio Alessandrelli
84112d9610 [Net] Fix WebRTC returning packets from peers too early.
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.
2021-12-15 11:07:46 +01:00