Rémi Verschelde
4a5801b44a
Merge pull request #82729 from shana/shana/ios-csharp
...
Add C# iOS support
2023-10-09 23:23:11 +02:00
Rémi Verschelde
a28dab7e82
Merge pull request #79711 from adamscott/web-non-blocking-main-thread
...
Add `proxy_to_pthread` option to `platform=web`
2023-10-09 23:22:22 +02:00
Andreia Gaita
ee9a735c26
Add C# iOS support
...
This support is experimental and requires .NET 8
Known issues:
- Requires macOS due to use of lipo and xcodebuild
- arm64 simulator templates are not currently included
in the official packaging
2023-10-09 18:22:56 +02:00
Adam Scott
78c2a08fae
Add proxy_to_pthread
option to platform=web
...
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
2023-10-09 11:50:01 -04:00
Rémi Verschelde
a1d7c62df7
Merge pull request #83003 from AThousandShips/null_check_extra
...
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-10-09 15:37:14 +02:00
Rémi Verschelde
7c12111c1c
Merge pull request #82790 from MarioLiebisch/warn-wasm-no-dlink
...
Web: Catch using GDExtensions in a non-dlink build
2023-10-09 15:33:02 +02:00
Rémi Verschelde
5a3befd6c9
Merge pull request #82508 from floatingpointer/master
...
Add XInput device ID for wireless Series 2 Elite controller
2023-10-09 15:32:13 +02:00
bruvzg
97bcd8a631
Add method to check if filesystem is case sensitive.
2023-10-09 11:00:15 +03:00
A Thousand Ships
f18aa00e85
Replace ERR_FAIL_COND
with ERR_FAIL_NULL
where applicable
2023-10-08 17:23:33 +02:00
Fredia Huya-Kouadio
2951c162ed
Cleanups and improvements to the Godot Android library api:
...
- Provide api to retrieve the running Godot instance from a GodotHost
- Provide api for the GodotHost to register runtime GodotPlugin instances
- Hide the GodotService class until it's completed
- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
2023-10-08 05:30:38 -07:00
Mario Liebisch
56a3cdc2f0
Web: Catch using GDExtensions in a non-dlink build
...
Previously this would simply fail with a cryptic
`me.rtenv.loadDynamicLibrary is not a function` error.
2023-10-06 18:02:53 +02:00
bruvzg
abbdc99821
[macOS] Fix ambiguous method call with older SDKs.
2023-10-05 22:12:24 +03:00
kobewi
09b30be86d
Add vararg call() method to C++ Callable
2023-10-05 11:35:29 +02:00
Rémi Verschelde
d8ab953442
Merge pull request #82163 from naelstrof/master
...
Made signal handling more uniform during crashes.
2023-10-05 10:08:09 +02:00
Rémi Verschelde
bfd78bb917
Merge pull request #82779 from emacser0/typo
...
Fix some typos in source
2023-10-04 15:46:29 +02:00
Rémi Verschelde
a904e78fd9
Merge pull request #82736 from adamscott/fix-#81105-regression
...
Fix `godot_js_wrapper_create_cb` regression
2023-10-04 15:43:42 +02:00
Rémi Verschelde
1e544505be
Merge pull request #82691 from YuriSizov/rst-validate-with-exceptions
...
Validate `code` tags for class and member references
2023-10-04 15:42:42 +02:00
Rémi Verschelde
03ff9fedb6
Merge pull request #82101 from bruvzg/x11_gles
...
[X11] Add support for using EGL/GLES instead of GLX.
2023-10-04 15:35:05 +02:00
Rémi Verschelde
d5db0e5032
Merge pull request #81218 from bruvzg/_temp_fs
...
[Native File Dialogs] Improve filter list handling, add selected filter to the callback.
2023-10-04 15:34:16 +02:00
bruvzg
af00c4a54a
[X11] Add support for using EGL/GLES instead of GLX.
2023-10-04 14:15:36 +03:00
emacser0
4c65ff52e4
Fix some typos in source.
2023-10-04 19:55:11 +09:00
bruvzg
d1aaa914f3
[macOS] Add about_to_open
and popup_hide
callback for the global menus, move part of logic to the PopupMenu to allow live menu modification.
2023-10-04 09:49:51 +03:00
Adam Scott
8447cbc16d
Fix godot_js_wrapper_create_cb regression
2023-10-03 12:52:20 -04:00
bruvzg
43e4708dff
[Native File Dialogs] Improve filter list handling, add selected filter to the callback.
2023-10-03 19:26:16 +03:00
Rémi Verschelde
3a5d524287
Merge pull request #82614 from m4gr3d/openxr_eye_gaze_interaction
...
Add support for the OpenXR Eye gaze interaction extension
2023-10-03 17:25:52 +02:00
Rémi Verschelde
be6a09b6ec
Merge pull request #82423 from bruvzg/mac_ex_fs
...
[macOS] Check all exclusive fullscreen windows before setting presentation mode.
2023-10-03 17:23:18 +02:00
Rémi Verschelde
30bc077756
Merge pull request #82364 from bruvzg/angle_lists_and_defaults
...
[ANGLE] Add fallback control options and defaults.
2023-10-03 17:22:53 +02:00
Rémi Verschelde
124f8983b8
Merge pull request #82357 from bruvzg/mac_fix_bl
...
[macOS] Fix borderless mode on macOS 13.6+.
2023-10-03 17:22:29 +02:00
Rémi Verschelde
5d300016a3
Merge pull request #81969 from bruvzg/macsign
...
[macOS export] Fix GDExtension framework `+x` flag errors, allow recursive signing on non macOS platform.
2023-10-03 17:21:15 +02:00
Rémi Verschelde
31dbbc2c5a
Merge pull request #80952 from bruvzg/nfdlg_refocus
...
[Native File Dialogs] Refocus last focused window on close.
2023-10-03 17:13:58 +02:00
Rémi Verschelde
530e01b478
Merge pull request #80409 from bruvzg/est_title_size
...
[DisplayServer] Add method to estimate window title bar size.
2023-10-03 17:12:18 +02:00
Rémi Verschelde
39bf982e65
Merge pull request #79871 from bruvzg/mingw_prefix_fix
...
[Windows] Try using objcopy and strip with prefix and without prefix.
2023-10-03 17:11:27 +02:00
Yuri Sizov
cc0eebd9d8
Validate code
tags for class and member references
...
This commit also adds means to manually disable warnings
in `code` tags where it's a false positive with the new
`skip-lint` attribute.
Warnings are now enabled on CI to prevent future errors.
2023-10-03 15:48:31 +02:00
bruvzg
ac3fc2a8a1
[ANGLE] Add fallback control options and defaults.
...
[macOS] Use ANGLE by default if engine is built with statically linked ANGLE.
[Windows] Add option enable/disable fallback to ANGLE and option force specific GPU to always use ANGLE.
2023-10-03 16:23:43 +03:00
bruvzg
72e2e47059
[DisplayServer] Add method to estimate window title bar size.
2023-10-03 16:13:52 +03:00
Bastiaan Olij
9e56e7a3ce
Add support for the OpenXR Eye gaze interaction extension
...
Co-authored-by: Bastiaan Olij <mux213@gmail.com>
2023-10-02 14:02:23 -07:00
Rémi Verschelde
9b29efd772
Merge pull request #82633 from Faless/web/visibility_expose
...
[Web] Fix `dlink_enabled` build
2023-10-02 13:16:51 +02:00
Rémi Verschelde
5fe97c5844
Merge pull request #82441 from akien-mga/web-clarify-get_unique_id
...
Web: Clarify that `OS.get_unique_id` is not supported
2023-10-02 13:16:31 +02:00
Rémi Verschelde
e95b7e84a4
Merge pull request #80844 from dalexeev/fix-callable-expected-argc
...
Fix expected argument count for `Callable` call errors
2023-10-02 13:15:53 +02:00
Fabio Alessandrelli
0bbadd6883
[Web] Fix dlink_enabled build
...
After changing the default visibility to hidden to avoid generating
thousands of import/export symbols (browsers have a hard limit of 10k),
explicitly setting visibility for "boundary functions" (i.e. wasm
callbacks called by JS via pointer) is required to ensure the function
can be retrieved via pointer from the function table.
2023-10-01 19:44:46 +02:00
Danil Alexeev
aff767ef07
Fix expected argument count for Callable
call errors
2023-09-29 20:00:10 +03:00
floatingpointer
81f9c0345c
Update joypad_windows.cpp
...
Add XInput device for Series 2 Elite controller
2023-09-28 18:24:08 -07:00
bruvzg
e1c7104e46
[iOS] Fix build with Xcode 15.
2023-09-27 21:27:15 +03:00
Rémi Verschelde
0a10f09ce4
Web: Clarify that OS.get_unique_id
is not supported
...
Remove the base error message in `OS`, we no longer really error out this
way for not implemented methods. Instead, each platform should override them
to provide the context they want.
Fixes #82439 .
2023-09-27 15:17:45 +02:00
bruvzg
b7b5fbe7aa
[macOS] Check all exclusive fullscreen windows before setting presentation mode.
2023-09-27 09:01:52 +03:00
A Thousand Ships
517e9f8aef
[Modules] Replace ERR_FAIL_COND
with ERR_FAIL_NULL
where applicable
2023-09-26 16:44:52 +02:00
Rémi Verschelde
da91cf9367
Merge pull request #82347 from SaracenOne/dir_access_checks
...
Add error checks for DirAccess creation
2023-09-26 16:36:47 +02:00
Rémi Verschelde
a4bca12336
Merge pull request #82304 from akien-mga/windows-remove-redundant-MSVC-define
...
Windows: Remove `MSVC` define redundant with `_MSC_VER`
2023-09-26 13:45:26 +02:00
Rémi Verschelde
48bee5c8ef
Merge pull request #82221 from Riteo/linux-ogl-no-vsync-override
...
Linux/OpenGL: Don't force vsync in the editor
2023-09-26 13:45:12 +02:00
Rémi Verschelde
814ab59c37
Windows: Remove MSVC
define redundant with _MSC_VER
...
Cleanup unused MSVC code in FileAccessUnix.
2023-09-26 11:11:45 +02:00
bruvzg
873d4079d1
[macOS] Fix borderless mode on macOS 13.6+.
2023-09-26 11:55:25 +03:00
Rémi Verschelde
4443b8f474
Merge pull request #82230 from zaevi/dark-mode-android-ios
...
Support dark mode on Android and iOS.
2023-09-26 08:30:36 +02:00
Zae
428eb1309a
Support dark mode on Android and iOS.
2023-09-26 11:00:04 +08:00
Saracen
3f4513d4de
Add error checks for DirAccess creation.
2023-09-26 03:07:43 +01:00
Mario Liebisch
426e18fd37
Updated compiler version detection
...
This fixes multiple issues/inconsistencies around `get_compiler_version()`:
* With no shell allocated, launching the compiler could fail even
with proper paths being set.
* The return value was described as "an array of version numbers as ints",
but the function actually returned a `Dictionary` (or `None`).
* Not all calls were properly handling a `None` return value in case of errors.
On Windows this broke compiling for me since #81869 with default settings.
* Some calls defined inconsistent defaults/fallbacks (`0` or `-1`).
2023-09-25 21:17:20 +02:00
Rémi Verschelde
b362976504
SCons: Fix Python 3.12 SyntaxError with regex escape sequences
2023-09-25 10:39:30 +02:00
Rémi Verschelde
b8238ec919
Merge pull request #81251 from aitorciki/nvidia-profile-multiapp
...
[Windows] Fix not applying NVIDIA profile to new executables
2023-09-24 23:31:20 +02:00
Riteo
4fd6777cf4
Linux/OpenGL: don't force vsync in the editor
...
I couldn't tell whether this has an actual purpose and it feels more
like a debug remnant.
We also need to be able to disable vsync in the editor for the WIP
Wayland backend (in the EGL driver) as it does manual frame throttling.
2023-09-24 04:36:58 +02:00
naelstrof
b49e9c9896
Made signal handling more uniform. Fixes #82102
2023-09-22 20:06:58 -06:00
Rémi Verschelde
bafcd32f15
Merge pull request #81716 from akien-mga/web-disable-raycast-embree
...
Web: Disable raycast module by default (no occlusion culling)
2023-09-22 22:03:55 +02:00
Aitor Guevara
6263774aec
[Windows] Fix not applying NVIDIA profile to new executables
...
An NVIDIA profile is applied to the current executable to disable
threaded OpenGL optimizations on Windows (see #71472 ). But because the
application is only added to the profile upon the profile creation,
newer executables won't be added to the profile (e.g. if the profile is
created on first launch of Godot_v4.1-stable_win64.exe, when users
update the editor and launch Godot_v4.2-stable_win64.exe, the profile
will never be applied to this new executable).
This patch fixes that scenario by splitting creating the profile (if it
doesn't exist) and adding the application (if it doesn't have a profile
applied) into two separate steps.
Applications that have been manually added to a different profile aren't
overriden to avoid confusing users who know what they're doing.
2023-09-22 20:51:12 +02:00
Rémi Verschelde
603119d301
Merge pull request #82037 from bruvzg/macos_gl_min_size
...
[macOS] Enforce non-zero window size.
2023-09-21 14:27:42 +02:00
Rémi Verschelde
cc0a02c75c
Merge pull request #82031 from bruvzg/borderless_fs
...
[Windows] Use clear color for non exclusive fullscreen border, fix maximize for borderless window switching to exclusive fs.
2023-09-21 14:27:39 +02:00
bruvzg
1887a9df19
[macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add EGL_ANDROID_blob_cache caching.
...
Co-authored-by: Riteo <riteo@posteo.net>
2023-09-21 14:21:00 +03:00
bruvzg
901e090e56
[macOS] Enforce non-zero window size.
2023-09-21 12:37:18 +03:00
bruvzg
b826cd5acd
[Windows] Use clear color for non exclusive fullscreen border, fix maximize for borderless window switching to exclusive fs.
2023-09-21 11:24:40 +03:00
bruvzg
f316283823
[macOS export] Fix GDExtension framework +x flag errors, allow recursive signing on non macOS platform.
2023-09-20 12:21:18 +03:00
bruvzg
6da8c7a662
[macOS] Workaround Xcode 15 linker bug.
2023-09-20 11:03:44 +03:00
Rémi Verschelde
50161808c2
Web: Fix version check for missing scalbnf LTO workaround
...
The check needs to happen after we set `env["CXX"]`.
Follow-up to #81340 .
2023-09-18 16:32:20 +02:00
Rémi Verschelde
4b2fb36a04
Merge pull request #80644 from Distantz/master
...
Android Stylus pressure and tilt support.
2023-09-17 14:46:39 +02:00
Rémi Verschelde
8c40edf8c0
Web: Disable raycast module by default (no occlusion culling)
...
This means no CPU occlusion culling (and not compiling Embree), unless
you compile custom export templates with `module_raycast_enabled=yes`.
This reduces the memory footprint significantly, and binary size.
Fixes #70621 .
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-09-16 21:00:04 +02:00
Yuri Sizov
48e1c19dea
Merge pull request #81583 from AThousandShips/null_check_drivers_platform
...
[Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-09-15 19:48:18 +02:00
Yuri Sizov
55840c5d24
Merge pull request #80932 from m4gr3d/fix_hardware_keyboard_input_routing_main
...
Fix Android input routing logic when using a hardware keyboard
2023-09-14 15:21:28 +02:00
A Thousand Ships
3565d1bf7e
[Drivers,Platform] Replace ERR_FAIL_COND
with ERR_FAIL_NULL
where applicable
2023-09-12 20:13:32 +02:00
Rémi Verschelde
df5376c4c0
Merge pull request #80761 from adamscott/change-default-android-package-unique-name
...
[Android] Change the default "org.godotengine" package name to "com.example"
2023-09-11 15:35:56 +02:00
Adam Scott
00e9bafb73
Change the default org.godotengine to com.example
2023-09-11 09:01:36 -04:00
Rémi Verschelde
08c578c54c
Merge pull request #81416 from akien-mga/uwp-ce-nest-qu-un-au-revoir
...
UWP: Remove platform port, needs to be redone from scratch for 4.x
2023-09-07 16:33:40 +02:00
Rémi Verschelde
2cd740fd7a
Merge pull request #81105 from SysError99/master-fix-js-mem-leak
...
Fix JavaScript callback memory leak issue
2023-09-07 16:32:06 +02:00
Rémi Verschelde
8de6405288
UWP: Remove platform port, needs to be redone from scratch for 4.x
...
The UWP platform port was never ported to the Godot 4.0+ API,
and it's now accumulating bitrot as it doesn't compile, and thus
we no longer propagate platform changes in it.
So we finally remove to acknowledge this state. There's still some
interest in reviving the UWP port eventually, especially as support
for Direct3D 12 will soon be merged, but when that happens it will
be easiest to redo it from scratch.
2023-09-07 15:01:59 +02:00
SysError99
6a90164a03
Fix JavaScript callback memory leak issue
...
Typo fix
2023-09-07 19:59:45 +07:00
Yuri Sizov
d8ff69d53c
Extract ScriptInstance to simplify includes
...
This allows to include script_instance.h directly in the
generated gdvirtual.gen.inc, and remove excessive includes
from the codebase.
This should also allow Resource to use GDVIRTUAL macros,
which wasn't possible previously due to a circular dependency.
2023-09-06 22:54:38 +02:00
Yuri Sizov
2282fc5de9
Merge pull request #81368 from m4gr3d/relax_android_plugin_v1_deprecation
...
Relax restriction on loading v1 Android plugins on Godot 4.2+
2023-09-06 14:49:43 +02:00
Yuri Sizov
2ced50f310
Merge pull request #81365 from bruvzg/ios_export_ext
...
[iOS export] Switch export target extension based on export type.
2023-09-06 14:49:40 +02:00
Yuri Sizov
07176632a6
Merge pull request #81339 from bruvzg/macos_fix_mvk_live_resize
...
[macOS] Fix live resize with the latest MoltenVK version.
2023-09-06 14:49:30 +02:00
Yuri Sizov
3c63dce3cd
Merge pull request #80573 from KoBeWi/2k_lines_of_changes_created_at_2AM
...
Add EditorStringNames singleton
2023-09-06 14:49:02 +02:00
Rémi Verschelde
bceac8c34f
Merge pull request #81340 from akien-mga/web-workaround-emscripten-3.1.42-lto-bug
...
Web: Workaround Emscripten 3.1.42+ LTO regression
2023-09-06 13:50:39 +02:00
Fredia Huya-Kouadio
12d96eeaef
Relax restriction on loading v1 Android plugins on Godot 4.2+
2023-09-06 02:59:44 -07:00
bruvzg
26951000ab
[iOS export] Switch export target extension based on export type.
2023-09-06 11:58:43 +03:00
bruvzg
208b379986
[macOS] Fix live resize with the latest MoltenVK version.
2023-09-05 16:21:08 +03:00
Rémi Verschelde
b064008c07
Web: Workaround Emscripten 3.1.42+ LTO regression
...
Fixes #80010 .
2023-09-05 14:58:52 +02:00
Fredia Huya-Kouadio
8cc7739197
Godot Android plugin re-architecture
2023-09-03 17:04:10 -07:00
kobewi
6de34fde27
Add EditorStringNames singleton
2023-09-03 19:58:18 +02:00
ocean (they/them)
bbafe14970
Build system: add option for MSVC incremental linking.
2023-08-29 18:53:45 -04:00
Rémi Verschelde
5b5471e30a
Merge pull request #78908 from zorbathut/pr_gitignore
...
Add static check for overzealous .gitignores and fix an example of such.
2023-08-29 12:41:53 +02:00
Rémi Verschelde
120abd12c2
Merge pull request #79504 from Pingar5/master
...
Android: Add option to always use WiFi to connect to remote debug
2023-08-28 15:02:13 +02:00
Rémi Verschelde
6584cd88d9
Merge pull request #78963 from bgie/comma_in_filename
...
Windows: Always double-quote path when launching explorer.exe to browse
2023-08-28 15:01:49 +02:00
Brennen Shaughnessy
40b08cb4b6
Android: Add option to always use WiFi to connect to remote debug
2023-08-28 13:13:36 +02:00
Brecht Kuppens
5608b1d411
Windows: Always double-quote path when launching explorer.exe to browse
...
Code now always double quotes the filename to use as command line
argument when calling explorer.exe. In particular, commas in a filename
would be interpreted by explorer.exe as separators for commands.
Similarly a trim_suffix for "file://" is assumed to be a mistake, this
could potentially be a PREfix that we want to strip, but never a suffix.
Since it didn't seem needed in the end, we removed it.
2023-08-28 12:46:50 +02:00
Emmanouil Papadeas
c662491bd4
Fix JavaScriptBridge.eval()
never returning PackedByteArray
...
It wrongly returned 20 on array buffers, which used to be the enumerator
value of Godot 3.x's type PoolByteArray, and now is the value of type Color,
while it should return 29 which is the enumerator value for PackedByteArray.
2023-08-28 11:37:55 +02:00
Yuri Sizov
d476cdff34
Merge pull request #80918 from bruvzg/scons_wrp_deps
...
[Windows] Add main executable to the console wrapper dependencies to prevent simultaneous linking.
2023-08-25 14:58:55 +02:00
bruvzg
2e1f48ff6e
[Native File Dialogs] Refocus last focused window on close.
2023-08-24 09:34:58 +03:00
Fredia Huya-Kouadio
87102e358d
Fix Android input routing logic when using a hardware keyboard
...
When a hardware keyboard is connected, all key events come through so we can route them directly to the engine.
This is not the case for soft keyboards, for which the current logic was designed as it requires extra processing.
2023-08-23 09:57:00 -07:00
bruvzg
f37ace7036
[Windows] Add main executable to the console wrapper dependencies to prevent simultaneous linking.
2023-08-23 09:54:06 +03:00
Haoyu Qiu
d026b37abd
Fix various typos in classref
2023-08-22 18:05:50 +08:00
Hugo Locurcio
469c462b76
Add missing tutorials to documentation classes
2023-08-19 20:29:24 +02:00
Hugo Locurcio
6f1152bdbe
Add a --audio-output-latency
command-line argument
...
This allows optimizing the audio output latency on higher-end CPUs,
especially in projects that do not expose a way to override this setting.
2023-08-17 14:45:17 +02:00
Rémi Verschelde
c72b851dfb
Merge pull request #80104 from bruvzg/freedesktop_native_file_dialog
...
[Linux/Freedesktop] Implement native file selection dialog support.
2023-08-17 11:23:00 +02:00
Rémi Verschelde
9a48b14a2d
Merge pull request #80036 from PorkrollPosadist/fix-wayland-window-behavior
...
Use EWMH for `DisplayServerX11::_window_minimize_check()` implementation
2023-08-17 11:22:36 +02:00
Rémi Verschelde
314cdf456b
Merge pull request #79578 from Faless/web/4.x_dlink_visibility
...
[Web] Use `fvisibility=hidden` for side module when dlink_enabled.
2023-08-17 11:21:47 +02:00
Aaron Franke
ada360affe
Add a button in the export dialog to fix missing texture formats
2023-08-17 02:56:42 -05:00
bruvzg
6cc314e0fa
[Linux/Freedesktop] Implement native file selection dialog support.
2023-08-17 10:56:16 +03:00
Rémi Verschelde
3907e53ff6
SCons: Disable C++ exception handling
...
Upon investigating the extremely slow MSVC build times in #80513 , I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.
This is wasteful on multiple aspects:
- Binary size: Around 20% binary size reduction with exceptions disabled
for both MSVC and GCC binaries.
- Compile time:
* More than 50% build time reduction with MSVC.
* 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.
Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.
2023-08-16 10:23:34 +02:00
Rémi Verschelde
6c3735cb7c
Merge pull request #80569 from m4gr3d/show_in_app_library_settings_main
...
Add export setting to control whether to show the Godot app in the app library
2023-08-16 09:13:30 +02:00
pikethom
7494ad6b54
Android stylus pressure and tilt support
2023-08-15 19:55:17 +12:00
Rémi Verschelde
efdff9cbc2
Fix GCC -Wmaybe-uninitialized warnings
2023-08-14 14:35:35 +02:00
Fredia Huya-Kouadio
63d47dced0
Add export setting to control whether to show the Godot app in the app library
2023-08-13 09:54:10 -04:00
Chia-Hsiang Cheng
669ce39f95
Ensure the active window gains the keyboard focus
2023-08-12 16:35:44 +08:00
scgm0
05bc070f7c
C#: Fix exporting for Android
2023-08-12 09:22:49 +08:00
Rémi Verschelde
bc1aef88ee
SCons: Disable misbehaving MSVC incremental linking
...
Fixes #77968 .
2023-08-10 14:04:19 +02:00
Rémi Verschelde
49f0d8cee3
Merge pull request #80279 from Sauermann/fix-x11-mouse-window-event-crash
...
Track hovered `Window` in `DisplayServerX11`
2023-08-10 00:43:00 +02:00
Rémi Verschelde
11ea4dc466
Merge pull request #80439 from bruvzg/macos_mouse_enter_exit
...
[macOS] Fix missing mouse exit events on window close.
2023-08-09 15:20:39 +02:00
Rémi Verschelde
d255811443
Merge pull request #80404 from bruvzg/file_attribs
...
[FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows.
2023-08-09 15:20:32 +02:00
Markus Sauermann
a7c5849f98
Track hovered Window
in DisplayServerX11
...
Send mouse-entered/exited window-events only when necessary
2023-08-09 12:20:23 +02:00
bruvzg
78caaf3717
[macOS] Fix missing mouse exit events on window close.
2023-08-09 10:23:57 +03:00
bruvzg
8aa6f29b56
[FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows.
2023-08-08 21:51:32 +03:00
Tyler
3cf1e04579
Fix Windows console wrapper and icon being swapped
...
Fixes #80238 .
2023-08-07 12:46:23 -04:00
Rémi Verschelde
6a0410bbc2
Merge pull request #80240 from bruvzg/x11_ext_checks
...
[X11] Do not fail DisplayServer init if non-essential extensions are missing.
2023-08-07 14:50:47 +02:00
Rémi Verschelde
048a164083
Merge pull request #79693 from bruvzg/com_ath
...
[Windows] Initialize COM as apartment-threaded.
2023-08-07 14:48:40 +02:00
Rémi Verschelde
9d6570af3b
Merge pull request #79456 from bruvzg/popup_area_fix
...
Fix native popups auto-closing when interacting with non-client area.
2023-08-07 14:47:02 +02:00
Rémi Verschelde
faaf27f284
Fix various typos with codespell
...
Also includes typo fixes from #79993 , #80068 , #80276 , and #80303 .
Co-authored-by: betalars <contact@betalars.de>
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com>
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-08-07 13:09:47 +02:00
bruvzg
e26a6c36c8
Fix native popups auto-closing when interacting with non-client area.
2023-08-07 10:01:48 +03:00
Yuri Sizov
dc6ea03101
Merge pull request #35555 from Calinou/add-version-project-setting
...
Add a "version" project setting and use it in new export presets
2023-08-04 21:01:15 +02:00
Rémi Verschelde
cc6a60913a
Merge pull request #78325 from akien-mga/libpng-moar-intrinsics
...
libpng: Enable intrinsics on x86/SSE2, ppc64/VSX, and all arm/NEON
2023-08-04 17:04:07 +02:00
Rémi Verschelde
2c9b7fc7a8
libpng: Enable intrinsics on x86/SSE2, ppc64/VSX, and all arm/NEON
2023-08-04 14:57:21 +02:00
Haoyu Qiu
097c849395
Fix various typos in classref
2023-08-04 16:29:55 +08:00
Hugo Locurcio
ad4480bf2e
Add a "version" project setting and use it in new export presets
...
This makes it easy to retrieve the project version at runtime
for display purposes, while simplifying the export preset configuration.
You can now leave the version empty unless you need to override it on a per-preset
basis.
Since export presets save the values of default values to the `export_presets.cfg`
file, this change only affects export presets created after this commit was merged.
2023-08-04 10:29:33 +02:00
bruvzg
acff87ffda
[X11] Do not fail DisplayServer init if non-essential extensions are missing.
2023-08-04 10:58:14 +03:00
Yuri Sizov
1610fc2ae7
Merge pull request #78539 from EIREXE/input-info
...
Add the ability to get per-platform information for joypads
2023-08-03 22:37:45 +02:00
Álex Román Núñez
3aa340d081
Add the ability to get per-platform information for joypads.
...
This adds the ability for games to obtain platform-specific information about joypads such as their vendor/product ID, their XInput gamepad index or the real name of the device before it gets swapped out by the gamecontrollerdb's name.
This PR also includes a rebased version of #76045 , this is because this PR is intended to be mainly to help people implementing Steam Input, as having the gamepad index is essential.
2023-08-02 22:30:30 +02:00
Yuri Sizov
49305df0e0
Merge pull request #80092 from Faless/web/npm_update
...
[Web] Update npm packages
2023-08-02 21:37:05 +02:00
Yuri Sizov
24049b6646
Merge pull request #79950 from bruvzg/win_app
...
[macOS Export] Disable unpacked .app bundle export on Windows.
2023-08-02 21:37:01 +02:00
bruvzg
b240b5be84
[Windows] Do not force redraw window background on mouse pass-through region change.
2023-08-02 10:40:40 +03:00
Markus Sauermann
8c1ce404d7
Fix crash on Windows when closing Window
...
Send `WINDOW_EVENT_MOUSE_EXIT` when a window is destroyed.
Ensure, that on Windows, the event_callback is still valid during
destroying the `Window`.
2023-08-02 00:17:25 +02:00
PorkrollPosadist
5666656d42
Use EWMH for DisplayServerX11::_window_minimize_check() implementation
2023-07-31 16:35:18 -04:00
Fabio Alessandrelli
61e7d47344
[Web] Update npm packages
2023-07-31 21:43:59 +02:00
Fredia Huya-Kouadio
867fc02551
Fix npe when registering the sensors.
2023-07-28 18:58:16 -07:00
Yuri Sizov
0c2399d6ec
Merge pull request #63826 from deakcor/dev_clipboard
...
Add `clipboard_has/get_image` methods to DisplayServer
2023-07-27 15:22:16 +02:00
bruvzg
56bd7adae4
[macOS Export] Disable unpacked .app bundle export on Windows.
2023-07-27 13:21:23 +03:00
Yuri Sizov
63411859db
Merge pull request #79351 from Repiteo/dotnet-handle-warnings
...
C#: Fix MSVC dotnet builds failing if running `dev_mode`
2023-07-26 18:40:06 +02:00
bruvzg
a0c388d4e1
[Windows] Try using objcopy and strip with prefix and without prefix.
2023-07-25 09:52:38 +03:00
Yuri Sizov
bec47cdbbc
Merge pull request #79846 from Faless/web/no_body_length
...
[Web] Always return -1 as body length in HTTPClientWeb
2023-07-24 19:33:48 +02:00
Yuri Sizov
c8e191b7f4
Merge pull request #79724 from Repiteo/gcc-windows-fixes
...
Fix gcc builds failing on windows
2023-07-24 19:33:19 +02:00
Fabio Alessandrelli
f4713d235a
[Web] Always return -1 as body length in HTTPClientWeb.
...
Body length cannot be reliably retrieved from the web.
Reading the "content-length" value will return a meaningless value when
the response is compressed, as reading will return uncompressed chunks
in any case, resulting in a mismatch between the detected body size and
the actual size returned by repeatedly calling read_response_body_chunk.
Additionally, while "content-length" is considered a safe CORS header,
"content-encoding" is not, so using the "content-encoding" to decide if
"content-length" is meaningful is not an option either.
We simply must accept the fact that browsers are awful when it comes to
networking APIs.
2023-07-24 08:57:02 +02:00
Yuri Sizov
88c1e0d528
Merge pull request #79350 from kleonc/screen_to_pixel_byte_to_float_conversion_fix
...
Fix byte to float color conversion in `DisplayServerWindows::screen_get_pixel`
2023-07-21 17:54:21 +02:00
Thaddeus Crews
d848c95748
Fix gcc builds failing on windows
2023-07-20 18:01:52 -05:00
bruvzg
4bfb820d32
[Windows] Initialize COM as apartment-threaded.
2023-07-20 12:14:16 +03:00
Yuri Sizov
0c2144da90
Remove excessive include that breaks compilation on Windows
2023-07-18 22:09:48 +02:00
Yuri Sizov
8f175a8649
Merge pull request #78958 from m4gr3d/refactor_android_plugin_packaging_main
...
Re-architect how Android plugins are packaged and handled at export time
2023-07-18 20:47:41 +02:00
Fredia Huya-Kouadio
b52e1be2c2
Clean up the XR features parameters from core
...
Following on the previous commit, the XR features logic have now be moved to the Godot OpenXR loader plugin.
See https://github.com/GodotVR/godot_openxr_loaders/pull/38
2023-07-18 19:14:53 +02:00
Fredia Huya-Kouadio
d17811c814
Re-architect how Android plugins are packaged and handled at export time
...
The previous packaging format for Godot Android plugins consisted of the plugin's `gdap` config file accompanied by binaries defined in the `gdap` file.
This format is now deprecated (starting with Godot 4.2), and instead Godot Android plugins are now packaged as `EditorExportPlugin` plugins.
The `EditorExportPlugin` class has been updated with the following methods to provide the necessary set of functionality:
- `_supports_platform`: returns true if the plugin supports the given platform
- `_get_android_dependencies`: retrieve the set of android dependencies (e.g: `org.godot.example:my-plugin:0.0.0`) provided by the plugin
- `_get_android_dependencies_maven_repos`: retrieve the urls of the maven repos for the provided android dependencies
- `_get_android_libraries`: retrieve the local paths of the android libraries (AAR files) provided by the plugin
- `_get_android_manifest_activity_element_contents`: update the contents of the `<activity>` element in the generated Android manifest
- `_get_android_manifest_application_element_contents`: update the contents of the `<application>` element in the generated Android manifest
- `_get_android_manifest_element_contents`: update the contents of the `<manifest>` element in the generated Android manifest
2023-07-18 19:14:53 +02:00
Yuri Sizov
e8aa8c17d2
Merge pull request #79574 from bruvzg/win_nat_d
...
[Windows] Implement native file selection dialog support.
2023-07-18 19:04:40 +02:00
bruvzg
d3ca91ad6a
[Windows] Implement native file selection dialog support.
2023-07-18 17:23:58 +03:00
Yuri Sizov
ec66c53d52
Merge pull request #79572 from bruvzg/mac_bg_ws_sync
...
[macOS] Fix uncapped frame rate for windows in the non-active workspaces.
2023-07-18 15:10:09 +02:00
Vincent D
c13e3a9fb0
add clipboard get image methods for windows and macos
...
Co-Authored-By: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
Co-Authored-By: bruvzg <7645683+bruvzg@users.noreply.github.com>
2023-07-17 23:47:27 +02:00
Yuri Sizov
57919beb05
Merge pull request #76821 from m4gr3d/prototype_godot_service_main
...
Refactor Godot Android architecture
2023-07-17 21:11:21 +02:00
Thaddeus Crews
897334a366
Allow MSVC dev_mode builds to succeed with dotnet
...
• Added #else section to mono #ifdef checks in relevant export_plugin scripts
2023-07-17 11:35:38 -05:00
Fabio Alessandrelli
5eed870a6a
[Web] Use fvisibility=hidden for side module when dlink_enabled.
...
This hugely reduces the number of exports, making it acceptable for
browsers.
Note that dlink + threads is still not working due to upstream issues
with the pthread emulation library.
Should hopefully be solved once emscripten move to native WASM threads.
2023-07-17 13:18:02 +02:00
Phil Hudson
076ef3bf6a
iOS: Add export_project_only
flag
2023-07-17 11:45:03 +02:00
bruvzg
2ee45dc293
[macOS] Fix uncapped frame rate for windows in the non-active workspaces.
2023-07-17 10:29:49 +03:00
Fredia Huya-Kouadio
29bbc17b48
Godot Android re-architecture
...
Decouples the Godot java entry point from the Android Fragment component. This enables the Godot component to be more easily reused across different types of Android components including Activities and Services.
2023-07-16 18:56:58 -07:00
Fredia Huya-Kouadio
00c782d959
Renaming Godot.java
to GodotFragment.java
to better reflect its nature and role
2023-07-16 18:56:57 -07:00
Hendrik Brucker
7e21eb7e00
Extract and reorganize texture resource classes
2023-07-14 20:04:21 +02:00
Yuri Sizov
70b5330b46
Merge pull request #78164 from 0xafbf/allow-export-tv-and-launcher
...
Add options to show icon in Android TV and run app as Android launcher
2023-07-14 18:48:54 +02:00
bruvzg
4790da7900
[macOS] Implement optional native file selection dialog support for sandboxed apps.
2023-07-12 22:36:24 +03:00
kleonc
9d45dd812f
Fix byte to float color conversion in DisplayServerWindows::screen_get_pixel
2023-07-12 21:31:02 +02:00
Yuri Sizov
1da09fd477
Merge pull request #79062 from MewPurPur/svg-optimizations
...
Optimize SVG icons and remove unused Transpose icon
2023-07-12 21:02:53 +02:00
Yuri Sizov
ff689003a5
Merge pull request #77993 from bruvzg/key_lbl_from_p
...
Implement DisplayServer.keyboard_get_label_from_physical method.
2023-07-12 21:02:37 +02:00
Yuri Sizov
55b74c7cdf
Merge pull request #76045 from Eoin-ONeill-Yokai/steaminput-fix
...
Prevent double input events on gamepad when running through steam input
2023-07-12 17:16:36 +02:00
Yuri Sizov
661c3954a6
Merge pull request #73443 from akien-mga/unbundle-openxr
...
Allow unbundling OpenXR (for Linux distros)
2023-07-12 17:15:25 +02:00
bruvzg
7b7f6d45d6
Implement iOS one-click deploy.
2023-07-12 16:25:04 +03:00
Yuri Sizov
5dff3c4484
Merge pull request #78538 from Sauermann/fix-code-simplifications
...
Remove unnecessary value assignments throughout the codebase
2023-07-12 15:09:26 +02:00
Yuri Sizov
2b47f6715e
Merge pull request #78437 from bruvzg/set_icon
...
Add error checks and harmonize behavior of the `set_icon` method.
2023-07-12 15:09:14 +02:00
Yuri Sizov
6960a1d0e8
Merge pull request #78248 from felaugmar/load-svg-adjustable-scale
...
Added `Image::load_svg_from_(buffer|string)`
2023-07-12 15:09:03 +02:00
Yuri Sizov
64689c146c
Merge pull request #79089 from bruvzg/android_echo
...
[Android] Set `echo` property for the physical keyboard events.
2023-07-12 14:18:30 +02:00
Rémi Verschelde
5dbbdaf27b
Merge pull request #79284 from akien-mga/fix-linux-os-move_to_trash
...
Fix Linux `move_to_trash` wrongly reporting files as not found
2023-07-11 11:30:21 +02:00
Rémi Verschelde
a6e75f3971
Fix Linux move_to_trash
wrongly reporting files as not found
...
We can't rely on the error code from `gio` or `kioclient5`, in my
rudimentary testing they return `1` for both missing files and other
situations like not having a Trash can on the mounted volume.
Fixes #79108 .
2023-07-11 09:55:27 +02:00
Eoin O'Neill
8de98dbf21
Prevent double input events on gamepad when running through steam input
...
During GDC and general testing on Steam Deck units, we found that single
gamepads would often register inputs twice under certain circumstances.
This was caused by SteamInput creating a new virtual device, which Godot
registers as a second gamepad. This resulted in two gamepad devices
reporting the same button presses, often leading to buggy input response
on games with no multi-device logic and other-wise could cause intended
Steam rebindings to not work as intended (for example, swapping o and x
on a playstation pad if that feature isn't supported by the game.)
SDL gets around this by taking in a list of devices that are to be
ignored. When valve sees a controller that wants to be rebound via
SteamInput, they push a new VID/PID entry onto the environment
variable `SDL_GAMECONTROLLER_IGNORE_DEVICES` for the original gamepad
so that all game inputs can be read from the virtual gamepad instead.
This leverages the same logic as we are already using SDL gamepad
related HID mappings.
2023-07-10 15:26:33 -07:00
Rémi Verschelde
dcd16a5750
Linux: Fix build with use_sowrap=no
and various warnings/errors
2023-07-10 14:34:01 +02:00
Rémi Verschelde
8a06ec979e
Change explicit 'Godot 4.0' references to 'Godot 4'
...
Fixes #79276 .
2023-07-10 13:08:11 +02:00
Kamil Brzoskowski
3cd865dbe8
Fix formatting of dlopen error message on Windows
...
And harmonize the format for all platforms.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-07-09 23:39:45 +02:00
Rémi Verschelde
79b31a8357
Merge pull request #79105 from akien-mga/linux-libsquish-lacks-pkgconfig
...
Linux: Link libsquish directly when unbundling, .pc file unreliable
2023-07-08 18:22:18 +02:00
Rémi Verschelde
ce32fe974e
Merge pull request #79048 from sepTN/its-platform-not-plafrom
...
Fix a typo in the TLSOptions documentation
2023-07-08 18:21:28 +02:00
Rémi Verschelde
988abb2161
Merge pull request #79016 from bruvzg/fix_win_initial_ne_fs
...
[Windows] Fix setting initial non-exclusive window mode.
2023-07-08 18:21:04 +02:00
Rémi Verschelde
43c0fa7f4b
Merge pull request #78797 from Calinou/remove-redundant-vformat
...
Remove uses of `vformat()` with no placeholders
2023-07-08 18:18:35 +02:00
Septian
b88b6b4f48
fix typo on TLSOptions.xml and library_godot_display.js
2023-07-08 13:34:50 +07:00
MewPurPur
fe194f8db0
Optimize SVG icons and remove unused Transpose icon
2023-07-07 17:58:15 +03:00
Rémi Verschelde
3a3ec4add1
Merge pull request #78263 from bruvzg/fl_all
...
[Windows] Flash both the window caption and taskbar button on `request_attention`.
2023-07-07 16:02:38 +02:00
Rémi Verschelde
f1e63b808a
Merge pull request #79101 from akien-mga/linux-unbundle-brotli
...
Linux: Allow unbundling brotli to use system library
2023-07-07 08:35:44 +02:00
Rémi Verschelde
69dbbcc313
Merge pull request #79092 from akien-mga/doctool-remove-version-attribute
...
Doctool: Remove version attribute from XML header
2023-07-07 08:34:55 +02:00
Rémi Verschelde
9522ef67d5
Merge pull request #79010 from bruvzg/set_native_icon_crash
...
[macOS] Fix `set_native_icon` crash with empty or invalid ICNS file.
2023-07-07 08:32:56 +02:00
Rémi Verschelde
b3b4f4c1c9
Linux: Link libsquish directly when unbundling, .pc file unreliable
2023-07-06 15:32:42 +02:00
Rémi Verschelde
153c4a4c4f
Linux: Allow unbundling brotli to use system library
2023-07-06 15:26:38 +02:00
Rémi Verschelde
81064cc239
Doctool: Remove version attribute from XML header
...
We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).
2023-07-06 10:08:21 +02:00
bruvzg
c687bfa697
[Android] Set echo
property for the physical keyboard events.
2023-07-06 09:53:50 +03:00
Rémi Verschelde
346f1ab86b
Bump version to 4.2-dev
...
Keep on waitin'
2023-07-05 22:07:03 +02:00
bruvzg
db0109b237
[Windows] Fix setting initial non-exclusive window mode.
2023-07-04 13:09:26 +03:00
bruvzg
618795a214
[macOS] Fix set_native_icon crash with empty or invalid ICNS file.
2023-07-04 09:09:40 +03:00
bruvzg
9c5a0c6c10
Add error checks and harmonize behavior of the set_icon method.
2023-07-03 13:48:28 +03:00
Ben Rog-Wilhelm
90f3992036
Fix: incorrectly .gitignored files.
2023-07-01 08:41:15 -05:00
Hugo Locurcio
dcc92c174e
Remove uses of vformat()
with no placeholders
...
This is identical to passing the string directly.
2023-06-28 16:27:55 +02:00
Hugo Locurcio
0b19ec3498
Display a message about missing C# support on Android/iOS/Web platforms
...
When trying to export a C# project, this displays an error message after
creating a export preset for an unsupported platform.
Support for these platforms is planned for a future release.
2023-06-24 00:09:06 +02:00
Felipe Augusto Marques
26eb3db234
Added Image's load_svg_from_(buffer|string)
...
No core dependency to the svg module.
2023-06-23 00:43:43 -03:00
Rémi Verschelde
d586096415
Merge pull request #72720 from pkdawson/fix-mouse-capture
...
DisplayServerWindows: Fix mouse capture when button up message is missed
2023-06-22 18:29:34 +02:00
Markus Sauermann
890fdd56df
Code simplifications
...
CPPcheck found most of them.
no need to assign the variable twice:
- AnimationTrackEditTypeAudio
- SSEffects
variable is assigned in all if-else clauses:
- EditorHelp
- AndroidInputHandler
- MenuBar
- ShaderCompiler
same if clause:
- ItemList
clearing an empty bitfield has no effect:
- Viewport
2023-06-21 22:37:26 +02:00
Rémi Verschelde
90446fe9f3
SCons: Move platform logo/run icon to export
folder
...
Follow-up to #75932 .
Since these icons are only used by the export plugin, it makes sense to
move them and generate the headers there.
The whole `detect.is_active()` logic seems to be a leftover from before
times, as far back as 1.0-stable it already wasn't used for anything.
So I'm removing it and moving the export icon generation to
`platform_methods`, where it makes more sense.
2023-06-20 13:16:37 +02:00
Rémi Verschelde
ddaefb3cd6
Merge pull request #78455 from aaronfranke/macos-fix-tex-format-valid
...
macOS: Finish checking templates before validating texture formats
2023-06-20 13:14:23 +02:00
Rémi Verschelde
65628f23c5
Merge pull request #78175 from phil-hudson/fix-#78105
...
Android: Set pending intent flag to stop insta-crash
2023-06-20 13:14:07 +02:00
Phil Hudson
ce7f648694
fix(android): set pending intent flag to stop insta-crash
...
fix(android): add conditional check for minimum sdk version
fix(android): formatting
fix(android): formatting
fix(android): formatting
fix(android): formatting again
2023-06-20 16:56:59 +08:00
Aaron Franke
a981158d1a
macOS: Finish checking templates before validating texture formats
2023-06-19 21:36:31 -05:00
Rémi Verschelde
217a20a8a0
Merge pull request #78448 from akien-mga/black-23.3.0
...
CI: Update static checks to black 23.3.0
2023-06-20 00:05:39 +02:00
Rémi Verschelde
356a602186
Merge pull request #74511 from AThousandShips/win_cursor_fix
...
Fix clearing custom cursor
2023-06-20 00:00:57 +02:00
Rémi Verschelde
c9c941e339
CI: Update static checks to black 23.3.0
...
And apply it to the codebase, removing empty lines at the start of blocks.
2023-06-19 23:33:02 +02:00
Rémi Verschelde
eb9c96b87c
Merge pull request #78123 from YeldhamDev/if_you_want_anything_done,_do_it_yourself
...
Allow exporting release Android builds without a debug keystore
2023-06-19 10:27:44 +02:00
Rémi Verschelde
01e84b1da1
Merge pull request #67158 from amoriqbal/fix_error_message
...
Fix the conditions for firing 'No such file or directory' error on Linux `move_to_trash`
2023-06-19 10:26:50 +02:00
Michael Alexsander
41a75cfa4f
Allow exporting release Android builds without a debug keystore
2023-06-19 01:00:13 -03:00
Rémi Verschelde
34a07b81ae
Allow unbundling OpenXR (for Linux distros)
...
Copy XrMatrix4x4f_CreateProjectionFov to our OpenXRUtil, instead of relying
on a private header.
2023-06-16 16:25:04 +02:00
bitsawer
3c42496fb0
Fix Clang dev_mode build const string conversion
2023-06-16 14:54:36 +03:00
Rémi Verschelde
598378513b
Merge pull request #78319 from bruvzg/fix_lipo_fa
...
[macOS export] Fix lipo file handling.
2023-06-16 10:24:37 +02:00
Rémi Verschelde
6d1ca52792
Merge pull request #78306 from m4gr3d/cleanup_launch_flow_main
...
Add parameters for the Godot Activity starting intent to allow restarting or force-quitting the engine
2023-06-16 10:23:50 +02:00
bruvzg
c7f4e3fd25
[macOS export] Fix lipo file handling.
2023-06-16 11:07:56 +03:00
bruvzg
28db3c7158
[DisplayServer] Add method to check if native window is focused.
2023-06-16 10:27:52 +03:00
Fredia Huya-Kouadio
0664f5ec3b
Add parameters for the Godot Activity starting intent to allow restarting or force-quitting the engine
...
Follow-up code cleanup for https://github.com/godotengine/godot/pull/78129
2023-06-15 21:41:49 -07:00
Danil Alexeev
2d2b2cadfa
Fix bsd
feature tag includes only "other BSDs"
2023-06-15 16:25:18 +03:00
bruvzg
49af2582c4
[Windows] Flash both the window caption and taskbar button on request_attention
.
2023-06-15 11:04:54 +03:00
Álex Román Núñez
938a837056
Disable NVIDIA's threaded optimization on Windows
2023-06-13 11:47:40 +02:00
Rémi Verschelde
9e7349bda3
Merge pull request #78151 from jpcerrone/fix_windowed_move_problems
...
Fix window resizing problems on Windows
2023-06-13 10:27:14 +02:00
Andrés Botero
e01a2693d5
Add options to show icon in Android TV and run app as Android launcher
2023-06-12 22:02:48 -05:00
RedworkDE
5c57b3aba4
Fix docs after renaming export option
2023-06-12 23:59:55 +02:00
Rémi Verschelde
54a8adfd50
Merge pull request #75984 from KoBeWi/ConsoleMcWrap
...
Rename console script to wrapper
2023-06-12 22:54:24 +02:00
jpcerrone
a80584664c
Fix window resizing problems on Windows
...
Fixes godotengine#76847, Fixes godotengine#74286
Reorders problematic steps from the DisplayServerWindows::window_set_mode function.
These were causing a resize with the dimensions of the previously used mode instead
of the current one.
2023-06-12 15:26:34 -03:00
bruvzg
974a7a89c6
[iOS] Fix orientation change in runtime.
2023-06-12 14:13:53 +03:00
Rémi Verschelde
54ab17eb21
Merge pull request #78129 from m4gr3d/fix_open_new_project_main
...
Fix issue causing the last edited project to open while switching to another one
2023-06-12 11:57:59 +02:00
Rémi Verschelde
26e5a98306
Merge pull request #77770 from jpcerrone/fix_minimize_missing
...
Fix minimize button missing in non-resizable projects
2023-06-12 11:39:08 +02:00
Fredia Huya-Kouadio
a951a14b16
Fix issue causing the last edited project to open while switching to another one.
...
Fixes https://github.com/godotengine/godot/issues/76562
2023-06-11 22:29:35 -07:00
Fredia Huya-Kouadio
dcd31a25b4
Merge pull request #78083 from m4gr3d/fix_multitouch_detection_spatial_viewport_main
...
Fix spatial viewport multitouch detection support
2023-06-11 18:08:59 -07:00
Fredia Huya-Kouadio
2c050cc17e
Fix spatial viewport multitouch detection support
...
Regression introduced by https://github.com/godotengine/godot/pull/77498
2023-06-10 08:47:24 -07:00
Aaron Franke
944fbce347
Enable S3TC_BPTC but not ETC2_ASTC by default
2023-06-09 11:38:29 -05:00
Dominik
19ce63d875
Added a few additional GUIDs to list of hardcoded IDs in is_xinput_device
2023-06-09 15:02:19 +02:00
Rémi Verschelde
a5a23678c4
Merge pull request #78029 from bruvzg/macos_fix_popup_ime_focus
...
[macOS] Fix IME focus in popup windows.
2023-06-09 11:08:06 +02:00
Rémi Verschelde
759309ba18
Merge pull request #77977 from zaevi/fix_windows_popup_ime
...
Fix IME doesn't work under Popup on Windows.
2023-06-09 11:06:02 +02:00
bruvzg
fe2d9e5bdf
[macOS] Fix IME focus in popup windows.
2023-06-09 08:03:13 +03:00
Rémi Verschelde
9e4315bb50
Style: Harmonize header includes in platform ports
...
This applies our existing style guide, and adds a new rule to that style
guide for modular components such as platform ports and modules:
Includes from the platform port or module should be included with relative
paths (relative to the root folder of the modular component, e.g.
`platform/linuxbsd/`), in their own section before Godot's "core" includes.
The `api` and `export` subfolders also need to be handled as self-contained
(and thus use relative paths for their "local" includes) as they are all
compiled for each editor platform, without necessarily having the api/export
matching platform folder in the include path.
E.g. the Linux editor build will compile `platform/android/{api,export}/*.cpp`
and those need to use relative includes for it to work.
2023-06-08 15:19:19 +02:00
bruvzg
08e8ff371d
Implement keyboard_get_label_from_physical method.
2023-06-08 10:13:31 +03:00
Fredia Huya-Kouadio
b2cd6a8a95
Add setting to control the window used to run the project for the Android editor
...
The follow options were added to the (new) `run/window_placement/android_window` editor setting:
- `Same as Editor`: run the project in the same window as the editor
- `Side-by-side with Editor`: run the project in an adjacent window to the editor
- `Auto`: choose how to run the project based on the device screen size
2023-06-07 18:32:52 -07:00
Zae
1b149b7440
Fix IME doesn't work under Popup on Windows.
2023-06-08 02:40:36 +08:00
Rémi Verschelde
2ae5a0704a
X11: Fix vformat ambiguous int types for GCC 10 (again)
2023-06-07 14:57:51 +02:00
MJacred
2c5e2196bd
Replace get_rendering_device() call to prevent crashes on OpenGL.
...
And make OpenGL video adapter info align with Vulkan.
2023-06-06 23:29:36 +02:00
Rémi Verschelde
0010b34a37
Merge pull request #75099 from mxnemu/add-default-x11-error-handler
...
[Linux/X11] Add a default error handler for X11 to avoid crashes.
2023-06-05 18:04:49 +02:00
nee
b13c82e964
[Linux/X11] Add a default error handler for X11 to avoid crashes.
...
The default behaviour for X11 is to crash even on non-fatal errors
when there is no error handler set. This change allows the window to
stay open and may enable users to save their work when things go
wrong.
This acts as a workaround for #65425 and #68471
2023-06-05 17:28:21 +02:00
Michael Alexsander
71d8882a02
Enhance icon fallback and their docs for exporters
2023-06-03 19:28:50 -03:00
Rémi Verschelde
8623572b1f
Merge pull request #75666 from ronyeh/main.cpp-2
...
Rename `iconpath` => `icon_path` & `hasicon` => `has_icon`.
2023-06-02 17:26:18 +02:00
jpcerrone
c819da7fdb
Fix minimize button missing in non-resizable projects.
...
Fixes https://github.com/godotengine/godot/issues/77603 .
On Windows, disabling the 'resizable' flag on the project
settings would also remove the minimize button from the window.
2023-06-02 10:31:50 -03:00
bruvzg
e15f37945b
[Linux/TTS] Cache TTS voice list.
2023-06-02 14:00:52 +03:00
hlutor
a932c5e81d
Added override for window_get_vsync_mode in display_server_web.cpp
2023-05-31 18:23:06 -06:00
Rémi Verschelde
574f917442
Merge pull request #77686 from m4gr3d/fix_editor_audio_stream_microphone_crash_main
...
Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone
2023-06-01 00:40:49 +02:00
Fredia Huya-Kouadio
8ca14183f0
Fix issue causing the Android editor to crash when creating a new AudioStreamMicrophone
...
Fixes https://github.com/godotengine/godot/issues/73801
2023-05-31 00:58:27 -07:00
Zae
14908140ea
Fix HTTPClient.get_response_body_length()
incorrect on Web
2023-05-30 15:22:51 +08:00
Yuri Sizov
c670c4334a
Merge pull request #65902 from MJacred/editor/copysysteminfo
...
Add an editor option to copy system info to clipboard
2023-05-27 20:11:54 +02:00
MJacred
9e5bf3d589
Copy system info to clipboard + Update bug_report.yml
...
plus minor static-related fixes
* linuxbsd: get_systemd_os_release_info_value() -> static breaks usage if used multiple times
* windows/linuxbsd: get_video_adapter_driver_info() writes info into static
* linuxbsd: get_distribution_name() + get_version() -> write bsd fallback into static variable
* windows/uwp/android: remove unnecessary use of static
2023-05-27 18:21:23 +02:00
Fredia Huya-Kouadio
01ee00f710
Improve touchpad and mouse support for the Android editor
...
- Fix issues with using a touchpad to click, drag, interact with the navigation controls, etc..
- Fix issues with panning with 2+ fingers
- Fix issues with using double-tap to magnify on the spatial editor
2023-05-25 20:27:04 -07:00
Rémi Verschelde
a67d37f7cf
Merge pull request #77458 from Riteo/late-night-preprocessing
...
Build `JoypadLinux` sandbox detection method only with udev
2023-05-25 09:26:33 +02:00
Riteo
51dfdfab96
Build JoypadLinux
sandbox detection method only with udev
...
Fixes an `unused-function` warning when building with `udev=no`.
2023-05-25 04:47:43 +02:00
Fredia Huya-Kouadio
a041f96779
Update the format for the app version code and name
2023-05-24 14:36:56 -07:00
Rémi Verschelde
094e88416a
Merge pull request #74569 from m4gr3d/setup_play_store_builds_main
...
Update the gradle build tasks to generate play store builds
2023-05-24 10:53:17 +02:00
Rémi Verschelde
774f4a7261
Merge pull request #73450 from Calinou/windows-vulkan-disable-amd-switchable-graphics
...
Disable AMD switchable graphics on Windows with Vulkan to fix driver issue
2023-05-24 08:44:46 +02:00
Fredia Huya-Kouadio
831b4a5366
Improve startup benchmarking
...
Move the benchmarking measuring methods from `Engine` to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
2023-05-23 13:22:35 -07:00
Rémi Verschelde
9dc286967f
X11: Fix vformat ambiguous int types for GCC 10
...
The build would fail with GCC 10 from our Linux SDK used for official builds.
2023-05-23 11:27:28 +02:00
Rémi Verschelde
7ed55c8833
Merge pull request #77258 from RedworkDE/natvis-pdb-embeded
...
Embed natvis debug views in PDB
2023-05-22 13:49:15 +02:00
Hiroki Taira
9dc84e3581
Add support for DPAD Center key of Android TV remote controller
2023-05-22 13:31:22 +02:00
RedworkDE
efa892b52a
Embed natvis debug views in PDB
...
This means the debugger can load them automatically.
2023-05-20 00:08:35 +02:00
bruvzg
5b9984b5a2
Add audio/general/text_to_speech
project setting to enable/disable TTS.
2023-05-18 20:16:03 +03:00
Max Hilbrunner
a521b85976
Small docs syntax fixes
2023-05-18 14:20:53 +02:00
bitsawer
68da61e74c
Fix for Clang dev_mode Windows build
2023-05-17 19:35:37 +03:00
Rémi Verschelde
b0f49266f9
Merge pull request #76719 from m4gr3d/add_input_event_cancelled_state_main
...
Augment the `InputEvent` class with a `CANCELED` state
2023-05-17 11:25:21 +02:00
Rémi Verschelde
265c70a369
Merge pull request #75142 from bruvzg/scr
...
[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
2023-05-16 10:48:16 +02:00
Fredia Huya-Kouadio
250749fa79
Augment the InputEvent
class with a CANCELED
state
...
The `InputEvent` class currently supports the `pressed` and `released` states, which given the binary nature, is represented by a `bool` field.
This commit introduced the `CANCELED` state, which signals that an ongoing input event has been canceled.
To represent all the states, the `InputEventState` enum is added and the `InputEvent` logic is refactored accordingly.
2023-05-15 11:48:25 -07:00
Fabio Alessandrelli
58c6f88802
[TLS/Windows] Skip disallowed certs in the trusted CA list.
...
Turns out the list of trusted root certificates contains disallowed
certificates (i.e. certificates which are no longer trusted or have been
revoked).
We need to check for the property `CERT_DISALLOWED_FILETIME_PROP_ID` to
check if and when the certificates should be distrusted.
2023-05-14 14:44:14 +02:00
Rémi Verschelde
788cb74cc6
Linux: Don't use udev for joypad hotloading when running in a sandbox
...
udev doesn't work in sandboxes, notably the new Steam container runtime
as found notably on the Steam Deck, and in Flatpak/Snap packages.
Like SDL does, when we detect such a containerized environment, we fall
back to parsing `/dev/input` directly.
See smcv's comments in #76879 for details.
Fixes #76879 .
2023-05-12 11:30:16 +02:00
Rémi Verschelde
258fabdbb3
Merge pull request #76836 from Faless/tls/system_certs
...
[TLS] Add support for platform-specific CA bundles.
2023-05-12 11:17:31 +02:00
Rémi Verschelde
1c07717d3e
Merge pull request #76974 from dsnopek/linuxbsd-feature-tags
...
Fix 'linux' and specific BSD feature tags
2023-05-12 10:06:08 +02:00
Rémi Verschelde
03053eaf19
Merge pull request #76957 from Riteo/dbus-check
...
Check DBus loading status before attempting to detect its version
2023-05-12 10:04:33 +02:00
Fabio Alessandrelli
6fd9982358
[TLS] Add support for platform-specific CA bundles.
...
Adds a new OS::get_system_ca_certs method which can be implemented by
platforms to retrieve the list of trusted CA certificates using OS
specific APIs.
The function should return the certificates in PEM format, and is
currently implemented for Windows/macOS/LinuxBSD(*)/Android.
mbedTLS will fall back to bundled certificates when the OS returns no
certificates.
(*) LinuxBSD does not have a standardized certificates store location.
The current implementation will test for common locations and may
return an empty string on some distributions (falling back to the
bundled certificates).
2023-05-12 09:58:23 +02:00
David Snopek
87fcee2d7f
Fix 'linux' and specific BSD feature tags
2023-05-11 16:58:52 -05:00
Riteo
a7542070ae
Check DBus loading status before attempting to detect its version
...
Fixes two related segfaults caused by running the DBus version check
unconditionally and potentially calling null function pointers.
This was clearly an oversight as all the other wrappers have proper
loading status checks.
2023-05-11 19:29:10 +02:00
Ninni Pipping
71ee65dc57
Enable shadow warnings and fix raised errors
2023-05-11 16:00:59 +02:00
Rémi Verschelde
0c7c35bdc6
Merge pull request #76924 from stolk/fixuninit
...
x11: Do not use uninitialized timestamps.
2023-05-11 11:48:23 +02:00
Rémi Verschelde
a1db628eb3
Merge pull request #76856 from HolonProduction/macos-specific
...
Don't expose macOS and iOS specific display servers.
2023-05-11 11:47:58 +02:00
HolonProduction
ddcb2d157d
Don't expose mac specific display server.
2023-05-11 11:02:08 +02:00
Bram Stolk
7a2e350d2b
x11: Do not use uninitialized timestamps.
...
Fixes #76922
2023-05-10 11:27:14 -07:00
Rémi Verschelde
74e5ad5c60
Merge pull request #76165 from and-rad/safe-credentials
...
Store sensitive export options in dedicated credentials file
2023-05-10 12:47:07 +02:00
Andreas Raddau
fab160ce70
Store sensitive export options in dedicated credentials file
2023-05-10 11:40:17 +02:00
Ninni Pipping
6bccdec7a1
Make documentation sorting use natural order
2023-05-09 17:47:52 +02:00
Rémi Verschelde
e56427b4f5
Merge pull request #76868 from chfoo/issue-72728
...
Ensure WindowData minimized/maximized are mutually exclusive
2023-05-09 17:44:53 +02:00
Rémi Verschelde
d550fdd7a4
Merge pull request #76791 from OmarShehata/fix-android-double-tap
...
Fix double tap & drag on Android
2023-05-09 10:45:59 +02:00
Omar Shehata
0c94750642
Fix double tap & drag on Android
2023-05-08 21:15:37 -04:00
Christopher Foo
e4d052e284
Ensure WindowData minimized/maximized are mutually exclusive
...
The window manager can break the assumption that
fullscreen/maximized/minimized values are mutually exclusive.
2023-05-08 20:23:45 -04:00
Rémi Verschelde
491a437df5
Merge pull request #76540 from reduz/redo-remote-filesystem
...
Redo how the remote filesystem works
2023-05-08 13:52:51 +02:00
Juan Linietsky
273a6eeb66
Redo how the remote filesystem works
...
Instead of reading files over the network, the new version uses a local file cache and only updates files when it changes.
The original remote filesystem was created 14 years ago, when ethernet was faster than hard drives or even flash. Also, mobile devices have a very small amount of storage.
Nowadays, this is no longer the case so the approach is changed to using a persistent cache in the target device.
Co-authored-by: m4gr3d
2023-05-08 11:57:54 +02:00
Davi
65236fe2d5
Fix building the Windows x86_32 target
...
In x86_32, `ULONG_PTR` and `SIZE_T` are defined as `unsigned long`, which is not a type supported by Variant without the `NEED_LONG_INT` define.
2023-05-07 11:01:20 -03:00
UltraBIF
8106d33d0f
Fixed various typos across the docs
2023-05-02 18:24:32 -04:00
shendo
92ade92fce
[Android] Fix dynamic Variant params stack constructions in JNI callbacks
...
Emitting signals with params from Android plugins could crash due to
object assignment with uninitialised mem. Instead, use 'memnew_placement'
to construct into stack addresses. Make similar JNI callbacks consistent.
Fixes #75754 .
2023-05-01 16:31:23 +10:00
Fredia Huya-Kouadio
0d569bea5d
Update the gradle build tasks to generate play store builds.
...
Configure the gradle builds to sign and build the release version of the Godot Android Editor
2023-04-27 22:08:55 -07:00
Rémi Verschelde
390aed9f11
Merge pull request #76510 from bruvzg/ios_conv_lib_load
...
[iOS] Fix loading of GDExtension dylibs auto converted to framework.
2023-04-27 23:56:36 +02:00
Samuele Panzeri
4aaa2e6477
Fix wait for thread not started
2023-04-27 20:28:22 +02:00
bruvzg
ad4d565ee7
[iOS] Fix loading of GDExtension dylibs auto converted to framework.
2023-04-27 19:04:12 +03:00
Rémi Verschelde
e1075e9c7c
Fix various typos with codespell
...
Also includes the grammar fix from #76206 .
Co-authored-by: Peter Anderson <BWPanda@users.noreply.github.com>
2023-04-26 13:57:09 +02:00
Rémi Verschelde
8f7b09916d
Merge pull request #76026 from YuriSizov/editor-running-up-that-gui
...
Extract editor run toolbar into its own component
2023-04-26 12:15:29 +02:00
Rémi Verschelde
fdb058f4df
Merge pull request #76464 from m4gr3d/fix_gl_window_resize_main
...
Fix issue with resizing the display on Android when using the compatibility renderer
2023-04-26 11:36:06 +02:00
Rémi Verschelde
b58873b98a
Merge pull request #69833 from Eoin-ONeill-Yokai/audio_invalid_mixrate
...
Fix crash caused by invalid mix_rate assignment due to bogus project settings.
2023-04-26 11:35:37 +02:00
Fredia Huya-Kouadio
b438b4a490
Fix issue with resizing the display on Android when using the compatibility renderer.
2023-04-26 00:43:13 -07:00
Eoin O'Neill
5a08091168
Fix crash caused by invalid mix_rate assignment due to bogus
...
project settings.
We'll default to a sensible value in the case that a user has
somehow managed to modify the configuration file incorrectly.
Closes 69819
2023-04-25 23:52:50 -07:00
Rémi Verschelde
5e383f3e3d
Merge pull request #76428 from bruvzg/finder_open
...
[macOS] Implement OS::shell_show_in_file_manager()
2023-04-25 14:44:13 +02:00
Rémi Verschelde
92e5f4f73a
Merge pull request #76037 from theromis/master
...
iOS splash screen rotation fix
2023-04-25 14:43:53 +02:00
Rémi Verschelde
53191928e5
Merge pull request #76345 from reduz/fix-thread-ids
...
Fix thread IDs.
2023-04-25 13:20:46 +02:00
bruvzg
a97225c753
[macOS] Implement OS::shell_show_in_file_manager()
2023-04-25 11:48:41 +03:00
Rémi Verschelde
76d33d187f
Merge pull request #69698 from Daylily-Zeleen/daylily-zeleen/show_in_explorer
...
Implement and expose OS::shell_show_in_file_manager()
2023-04-25 09:57:27 +02:00
Daylily-Zeleen
b12ced0a26
Implement and expose OS::shell_show_in_file_manager()
2023-04-25 11:29:32 +08:00
Rémi Verschelde
60a335b24b
Merge pull request #76394 from bruvzg/macos_1013
...
[macOS] Bump min. version to 10.13, and remove deprecated code.
2023-04-24 16:48:25 +02:00
Juan Linietsky
a37c30dfc9
Fix thread IDs.
...
On Linux, thread IDs were not properly assigned with the current approach.
The line:
`std::thread new_thread(&Thread::callback, _thread_id_hash(thread.get_id()), p_settings, p_callback, p_user);`
does not work because the thread ID is not assigned until the thread starts.
This PR changes the behavior to use manually generated thread IDs. Additionally, if a thread is (or may have been created) outside Godot, the method `Thread::attach_external_thread` was added.
2023-04-24 15:13:58 +02:00
bruvzg
628f3b2f79
[OS] Implement and expose to scripting APIs get_memory_info
method instead of old get_free_static_memory
.
2023-04-24 14:08:55 +03:00
bruvzg
fd3e7e25e8
[macOS] Bump min. version to 10.13, and remove deprecated code.
2023-04-24 10:52:50 +03:00
Rémi Verschelde
220d44eff4
Merge pull request #76325 from m4gr3d/downgrade_agp_main
...
Downgrade android gradle plugin to version 7.2.1.
2023-04-22 13:19:57 +02:00
Fredia Huya-Kouadio
4507d3a38c
Downgrade android gradle plugin to version 7.2.1.
...
Version 7.3.0 changes the build layout which causes updates to the generated shared libraries to not be picked up.
2023-04-21 14:34:07 -07:00
Hugo Locurcio
303bf247de
Add support for VRAM-compressed custom mouse cursor images
...
No memory is actually saved when using this, so lossless modes are
still recommended as they look better and load faster.
2023-04-21 18:01:47 +02:00
bruvzg
a5128e71bb
[Export docs] Move docs to platform folders.
2023-04-20 11:02:12 +03:00
Yuri Sizov
8a74d8438f
Extract editor run toolbar into its own component
...
- Simplify and update its logic.
- Simplify EditorScript.
- Improve EditorNode and other relevant includes.
- Fix scene-based path in the movie writer when
reloading a scene.
2023-04-19 17:12:28 +02:00
Rémi Verschelde
989fa49e71
Merge pull request #75219 from bruvzg/get_focus_screen
...
Add project manager / editor initial screen settings, implement `get_keyboard_focus_screen` method.
2023-04-19 10:13:44 +02:00
bruvzg
520a8d8ed2
Add project manager / editor initial screen settings, implement DisplayServer.get_keyboard_focus_screen method.
2023-04-19 08:54:53 +03:00
bruvzg
0088981c40
[Export] Add readable descriptions and validation warnings to the export options.
2023-04-19 08:35:59 +03:00
Rémi Verschelde
c2edf14faf
Merge pull request #75881 from bruvzg/win_coinit
...
[Windows] Cleanup COM library initialization/uninitialization.
2023-04-18 23:40:06 +02:00
Rémi Verschelde
c4dba9a5ef
Merge pull request #75880 from bruvzg/win_tts_queue_fix
...
[Windows TTS] Fix queuing utterances in rapid succession.
2023-04-18 23:39:42 +02:00
Rémi Verschelde
efa01d36b6
Merge pull request #75383 from bruvzg/dll_deps_detect
...
[Windows] Detect missing DLL dependencies and list them in the open_dynamic_library error message.
2023-04-18 23:39:16 +02:00
Rémi Verschelde
63d17df83e
Merge pull request #74978 from bruvzg/linux_version_check
...
[Linux/BSD] Add dynamically loaded library version checks.
2023-04-18 23:38:51 +02:00
Danil Alexeev
36bedd341a
Fix misuses of error macros
2023-04-18 10:20:48 +03:00
Yuri Sizov
f5f796b0b7
Merge pull request #76040 from MightiestGoat/fix-sliding-window-linux-via-tracking-parent
...
Fix the sliding window problem in linux occur due to reparenting of the window due to decoration.
2023-04-14 13:11:36 +02:00
mightygoat
932afc3bf5
Fix the sliding window problem in linux occur due to reparenting of the window during the decoration via tracking the parent of the window
2023-04-14 00:45:34 +05:30
Roman Vasilyev
8fcca194a1
ios splash screen rotation fix
2023-04-13 11:32:52 -07:00
Jason Knight
f8699d93f6
Fix potential null in android text entry system.
2023-04-12 09:18:11 -06:00
kobewi
a3799208c0
Rename console script to wrapper
2023-04-12 15:14:51 +02:00
Rémi Verschelde
95791889e2
Merge pull request #75933 from akien-mga/windows-tts-hashmap
...
Windows TTS: Use HashMap instead of RBMap for ids
2023-04-11 19:41:03 +02:00
Rémi Verschelde
f7f7250c0d
Merge pull request #75827 from Kvel2D/fix-custom-cursor-atlas-texture-bug
...
Fix custom cursor using atlas texture
2023-04-11 19:40:44 +02:00
Rémi Verschelde
5722d6e3cc
Merge pull request #75451 from bruvzg/web_mac_keys
...
[Web] Detect host OS and use macOS keys on mac hosts.
2023-04-11 19:40:16 +02:00
Rémi Verschelde
02b9a9268a
Merge pull request #74326 from mjunix/patch-1
...
macOS export: Fix validation of codesigning certificate password
2023-04-11 19:40:11 +02:00
Kvel2D
41f0a523db
Fix custom cursor using atlas texture
...
Remove image.is_valid() check
There is already a fail condition and image is not used before that
Move up texture_is_valid() check
2023-04-11 19:16:24 +02:00
Johan Mattsson
76e1d1363b
macOS export: Fix validation of codesigning certificate password
2023-04-11 18:45:46 +02:00
Rémi Verschelde
92b9806dcc
Windows TTS: Use HashMap instead of RBMap for ids
...
And fixup includes in other implementations.
2023-04-11 15:54:21 +02:00
bruvzg
a5009f4d3c
[Web] Detect host OS and use macOS keys on mac hosts.
2023-04-11 10:58:54 +03:00
bruvzg
83dc545ea2
[Windows] Cleanup COM library initialization/uninitialization.
2023-04-10 10:38:25 +03:00
bruvzg
a9d326db60
[Windows TTS] Fix queuing utterances in rapid succession.
2023-04-10 10:24:40 +03:00
bruvzg
744bf604bf
[Web] Fix keycode/physical keycode mixed up.
2023-04-06 09:40:59 +03:00
Ron B. Yeh
c8cbc67156
Rename iconpath => icon_path
& hasicon => has_icon
.
2023-04-04 17:05:37 -07:00
Rémi Verschelde
7aa224291b
Merge pull request #73200 from 0xafbf/fix-guide-button-win
...
Fix guide button detection with XInput and Xbox Series controllers
2023-04-03 15:58:36 +02:00
Yuri Sizov
db77702177
Merge pull request #75254 from bruvzg/macos_menu_cb_loop
...
[macOS] Fix infinite loop caused by global menu callbacks which trigger EditorProgress dialog.
2023-03-30 23:09:42 +02:00
Yuri Sizov
80528c17c7
Merge pull request #75461 from Sabrehull/keycode-fix
...
[X11] Fix layout bug in `keyboard_get_keycode_from_physical`
2023-03-30 18:24:33 +02:00
Yuri Sizov
c29866dbc0
Merge pull request #75203 from m4gr3d/bump_target_sdk_33_main
...
Bump the target SDK version to 33 (Android 13)
2023-03-29 20:18:39 +02:00
Sabrehull
d4b7466266
[X11] Fix layout bug in keyboard_get_keycode_from_physical
2023-03-29 15:18:31 +02:00
bruvzg
68163f5643
[Windows] Detect missing DLL dependencies and list them in the open_dynamic_library error message.
2023-03-27 12:18:15 +03:00
bruvzg
48730e3b77
[macOS] Fix infinite loop caused by global menu callbacks which trigger EditorProgress dialog.
2023-03-23 13:38:12 +02:00
Fredia Huya-Kouadio
845ca33c76
Bump the target SDK version to 33 (Android 13)
2023-03-21 19:24:09 -07:00
ator-dev
dfb405b702
Fix "Download Project Source" for Web Editor
...
- Correctly pass safe project name and safe datetime to `vformat`
2023-03-21 19:20:52 +00:00
Yuri Sizov
0067578b5b
Merge pull request #75146 from m4gr3d/fix_directory_access_with_all_files_access_permission_main
...
Fix directory access when the running app has the `All files access` permission
2023-03-21 14:43:14 +01:00
bruvzg
e6067a39b5
[Windows] Remove meta_mem update on keyup/keydown.
2023-03-21 09:16:10 +02:00
Fredia Huya-Kouadio
f02e4e4091
Fix directory access when the running app has the All files access
permission
2023-03-20 08:56:04 -07:00
Yuri Sizov
8e87806c8e
Merge pull request #75106 from m4gr3d/set_vulkan_level_optional_main
...
Make vulkan level 1 an optional requirement
2023-03-20 15:28:58 +01:00
bruvzg
ab94024ce1
[DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.
2023-03-20 14:58:21 +02:00
bruvzg
09465f3fe6
Remove (or make verbose only) various debug prints.
2023-03-20 08:14:18 +02:00
bruvzg
bed46f723c
[Linux/BSD] Add dynamically loaded library version checks.
2023-03-20 08:10:56 +02:00
Fredia Huya-Kouadio
f67d7fa137
Make vulkan level 1 an optional requirement
2023-03-19 08:54:12 -07:00
Yuri Sizov
2dc16f3c58
Merge pull request #74066 from m4gr3d/add_vulkan_version_filter_main
...
Add feature check to require min Vulkan api version 1.0 on Android
2023-03-16 13:08:09 +01:00
bruvzg
42a30c76d9
[macOS] Remove unnecessary debug prints.
2023-03-14 20:04:58 +02:00
John Veness
4505049ba6
Corrected capitalisation of macOS
...
In documentation and comments, ignoring thirdparty code
2023-03-12 16:48:52 +00:00
Malcolm Nixon
d186b7438f
Fix null-pointer dereference on Android systems when using gl_compatibility renderer.
2023-03-11 12:03:55 -05:00
Rémi Verschelde
fcbb3e6388
Merge pull request #74702 from bruvzg/ts_inv_font_metrics
...
[TextServer] Add invalid font scaling check, restrict Linux/BSD system fonts lookup to TrueType/CFF only.
2023-03-10 14:06:14 +01:00
Rémi Verschelde
9b8c4d2629
Merge pull request #74673 from lewiji/android_provider_path
...
Add "filesRoot" path to Android provider paths xml
2023-03-10 14:05:04 +01:00
Rémi Verschelde
015cec0a6b
Merge pull request #74666 from akien-mga/scons-linux-cleanup-pulseaudio-defines
...
SCons: Cleanup pulseaudio defines for Linux
2023-03-10 14:03:53 +01:00
Ninni Pipping
a419325753
Fix clearing custom cursor
2023-03-10 11:59:49 +01:00
bruvzg
8d501a2dc3
[TextServer] Add invalid font scaling check, restrict Linux/BSD system fonts lookup to TrueType/CFF only.
2023-03-10 09:36:17 +02:00
lewiji
ac04ff7bec
Add "filesRoot" path to Android provider paths xml
2023-03-09 19:11:08 +00:00
Rémi Verschelde
a35586779e
SCons: Cleanup pulseaudio defines for Linux
...
No need to define _REENTRANT manually when using the system lib,
it's part of the pkgconfig cflags.
And we were then defining PULSEAUDIO_ENABLED twice.
2023-03-09 16:05:52 +01:00
Rémi Verschelde
c1128e911c
Merge pull request #74645 from omar-polo/scons-exit
...
exit with non-zero status if not all freetype deps are all builtin or not
2023-03-09 15:59:20 +01:00
Omar Polo
ac04a0761e
change some sys.exit() to be fatal
...
- when not all freetype deps are builtin (or provided externally)
- when attempting to build on an unsupported CPU architecture
2023-03-09 14:30:45 +01:00
Hugo Locurcio
ddc9cc3e49
Tweak command syntax in Vulkan renderer failure message
...
This quotes the executable name so that copying it always works
(even if the path contains spaces).
The command is also indented from the rest of the text and is
no longer single-quoted, as that can prevent the command from
running if the line is copied in its entirety (with the quotes).
2023-03-08 22:28:23 +01:00
Rémi Verschelde
511dac838b
Merge pull request #74598 from bruvzg/x11_kc
...
[Linux/X11] Add some missing keycodes/scancodes.
2023-03-08 14:06:58 +01:00
bruvzg
5d35c600d5
[Linux/X11] Add some missing keycodes/scancodes.
2023-03-08 12:13:41 +02:00
Rémi Verschelde
8325320192
Merge pull request #74563 from clayjohn/X11-context
...
Propogate errors when creating an OpenGL context fails in X11
2023-03-08 08:58:35 +01:00
clayjohn
e7ea3ef531
Propogate errors when creating an OpenGL context fails in X11
2023-03-07 11:12:21 -08:00
Rémi Verschelde
013a457068
Merge pull request #74535 from Rindbee/fix-broken-shortcut-key-input
...
Fix broken shortcut key input
2023-03-07 12:05:20 +01:00
Rémi Verschelde
918c910b4d
Merge pull request #73878 from RedMser/fix-clipboard-focus-windows
...
Fix clipboard relying on focused window
2023-03-07 12:04:26 +01:00
Rindbee
91e460d500
Fix broken shortcut key input
2023-03-07 16:06:38 +08:00
Ron B. Yeh
7e7ac1bb87
Rename mkv_list to mvk_list (MoltenVK path list).
2023-03-06 16:25:00 -08:00
Rémi Verschelde
5f2137a050
Merge pull request #74087 from bruvzg/get_screen_px
...
[DisplayServer] Implement screen_get_pixel method for LinuxBSD/X11, macOS and Windows.
2023-03-06 21:58:58 +01:00
Rémi Verschelde
2267646bf4
Merge pull request #74476 from bruvzg/js_phy_keycode
...
[Web] Fix some missing keycode mappings.
2023-03-06 10:59:01 +01:00
bruvzg
0b0587af97
[Web] Fix some missing keycode mappings.
2023-03-06 11:55:49 +02:00
Rémi Verschelde
7b31c7b72a
Merge pull request #74470 from m4gr3d/configure_snapshot_publish_version_main
...
Configure maven central snapshot versions for the Godot Android library
2023-03-06 10:53:46 +01:00
Rémi Verschelde
f408e7a387
Merge pull request #74444 from akien-mga/windows-mingw-fix-missing-dwrite-font-weight
...
Windows: Workaround missing DWRITE_FONT_WEIGHT value in old MinGW
2023-03-06 10:52:59 +01:00
Rémi Verschelde
90b516e803
Merge pull request #74474 from bruvzg/win_ime_release_mod
...
[Windows] Update modifier key status during IME input.
2023-03-06 10:52:27 +01:00
Rémi Verschelde
19a51467af
Merge pull request #74398 from necrashter/android-vk-height
...
Use the new API for virtual keyboard height detection on Android, bugfix for old API
2023-03-06 10:50:14 +01:00
Fredia Huya-Kouadio
a5fdc95515
Configure maven central snapshot versions for the Godot Android library
...
A snapshot version is a version that has not yet been released which allows us to deploy the same transient version incrementally, without requiring projects to upgrade the artifact version they're consuming. Those projects can use the same version to get an updated snapshot version.
2023-03-06 01:30:19 -08:00
bruvzg
ba995c6ea1
[Windows] Update modifier key status during IME input.
2023-03-06 10:31:23 +02:00
necrashter
61549edef0
Use the new API for virtual keyboard height detection on Android, bugfix
2023-03-06 00:18:39 +03:00
Rémi Verschelde
b7ecb9584a
Windows: Workaround missing DWRITE_FONT_WEIGHT value in old MinGW
...
Fixes #74339 .
2023-03-05 18:18:04 +01:00
Rémi Verschelde
9ab52d8773
Merge pull request #74367 from webair/increase-max-touches-ios
...
iOS: Increase max simultaneous touches to 32
2023-03-05 13:30:13 +01:00
Chris Weber
54bd204377
increased max touches to 32 for ios
2023-03-04 17:24:00 +01:00
Rémi Verschelde
afb8693715
Linux: Don't try to link system embree3 on unsupported archs
2023-03-03 14:02:05 +01:00
Rémi Verschelde
aa9de8a930
Merge pull request #74030 from bruvzg/win_to_win_shh
...
Fix Windows to Windows SSH remote deploy. Fix Windows `execute` exit code.
2023-03-02 11:21:20 +01:00
bruvzg
8a675f3824
[Linux/X11] Check if required xkb functions exist before using it.
2023-03-02 10:25:50 +02:00
bruvzg
e7647b5ee5
[DisplayServer] Implement screen_get_pixel method for LinuxBSD/X11, macOS and Windows.
2023-03-01 09:32:23 +02:00
Fredia Huya-Kouadio
306a2ad386
Add feature check to require min Vulkan api version 1.0 on Android
2023-02-28 11:20:34 -08:00
Rémi Verschelde
491ded1898
Minor typo and docs URL fixes
2023-02-28 13:38:01 +01:00
bruvzg
94355249c3
Fix Windows to Windows SSH remote deploy. Fix Windows execute
exit code.
2023-02-27 09:54:49 +02:00
RedMser
942f8b9858
Fix clipboard relying on focused window
2023-02-24 16:31:57 +01:00
Rémi Verschelde
9e6cb51939
Merge pull request #73752 from bruvzg/x11_quote_left
...
Fix X11 QUOTELEFT / SECTION physical key mapping.
2023-02-24 14:11:25 +01:00
bruvzg
97062ddf2b
[Linux TTS] Use Callable instead of registering methods.
2023-02-22 16:05:17 +02:00
Rémi Verschelde
32bd912bb6
Merge pull request #73750 from bruvzg/brace
...
[Input] Use BRACKET_ instead of BRACE_ for physical keys.
2023-02-22 14:50:18 +01:00
Rémi Verschelde
9e75ae878d
Merge pull request #73744 from bruvzg/mainw_init_flags
...
[Windows] Take initial flags into account when creating main window.
2023-02-22 14:49:44 +01:00
bruvzg
693afe95d3
Fix X11 QUOTELEFT / SECTION physical key mapping.
2023-02-22 13:16:58 +02:00
bruvzg
fdf56a2fc2
[Input] Use BRACKET_ instead of BRACE_ for physical keys.
2023-02-22 12:39:30 +02:00
Rémi Verschelde
7fab2d7f46
Merge pull request #73740 from bruvzg/win_codesign
...
[Windows Export] Pass password only when using PKCS12 file, fix executable name in the error message.
2023-02-22 10:13:52 +01:00
Rémi Verschelde
91aed4b9b5
Merge pull request #73694 from m4gr3d/update_touchscreen_editor_settings_main
...
Enable granular control of touchscreen related settings
2023-02-22 10:12:42 +01:00
bruvzg
ba7ab0e1cb
[Windows] Take initial flags into account when creating main window.
2023-02-22 10:52:26 +02:00
Fredia Huya-Kouadio
445053a62d
Enable granular control of touchscreen related settings
2023-02-22 00:16:39 -08:00
bruvzg
493271a04c
[Windows Export] Pass password only when using PKCS12 file, fix executable name in the error message.
2023-02-22 09:07:00 +02:00
Rémi Verschelde
e13fae1414
Merge pull request #72817 from m4gr3d/include_htc_xr_category_metadata
...
Add HTC Vive focus XR manifest metadata
2023-02-21 23:52:21 +01:00
bruvzg
6e76a7fbd8
[Linux] Process TTS callback on the main thread to avoid speech-dispatcher deadlock.
2023-02-21 10:45:49 +02:00
bruvzg
6f418a3441
[macOS] Fix Input.warp_mouse shifted by one screen pixel.
2023-02-21 08:30:28 +02:00
Hugo Locurcio
950c5b57e4
Move code to Windows Vulkan context initialization context
...
This workaround is not needed for rendering drivers other than Vulkan.
2023-02-17 17:48:18 +01:00
Aaron Franke
c53ab56633
macOS: Enable display/high_res
by default
2023-02-17 10:27:28 -06:00
Rémi Verschelde
f84479fe5a
Merge pull request #72877 from bruvzg/x11_on_top
...
[X11] Fix initial "on top" window state.
2023-02-17 16:21:13 +01:00
bruvzg
853f0eae58
[X11] Fix initial "on top" window state.
2023-02-17 16:08:26 +02:00
Rémi Verschelde
4574b97752
Fix crash with bogus shape index to DisplayServer.cursor_set_custom_image()
...
Fixes #66605 .
2023-02-17 14:17:37 +01:00
Rémi Verschelde
cefe1e0654
Merge pull request #73441 from akien-mga/linux-unbundling-fixes
...
Fix includes of thirdparty libs which can be unbundled on Linux
2023-02-17 09:56:02 +01:00
Nataša
c71d050529
iOS: Implement missing JoyButton::BACK (Options), START (Menu), and GUIDE (Home)
2023-02-16 23:54:15 +01:00
Hugo Locurcio
31a9345189
Disable AMD switchable graphics on Windows with Vulkan to fix driver issue
...
This is a required workaround on setups with AMD integrated graphics
+ NVIDIA dedicated GPU to be able to start the engine with the Forward+
or Forward Mobile rendering methods.
While a AMD driver update can resolve this issue, it still gets reported
regularly and is likely to become a source of support headache for people
distributing projects made with Godot (as this also affects exported projects).
2023-02-16 19:39:27 +01:00
Rémi Verschelde
29f670b7ab
Merge pull request #73359 from bruvzg/so_wrap_opt
...
[Linux] Make SO wrapper usage optional.
2023-02-16 18:35:04 +01:00
Rémi Verschelde
e2fc0acd36
Fix includes of thirdparty libs which can be unbundled on Linux
...
Changes `builtin_icu` and `builtin_recast` to match the folder names in
`thirdparty`.
2023-02-16 15:52:13 +01:00
bruvzg
dd068794c3
[Linux] Make SO wrapper usage optional.
2023-02-16 16:38:47 +02:00
bruvzg
bc95b0b171
Restore FileAccess.close method.
2023-02-16 15:34:20 +02:00
Rémi Verschelde
43c9ac82bb
Merge pull request #69201 from tbveralrud/ios-touch-leak-fix-master
...
iOS: Fix memory leak on touch input
2023-02-16 11:01:58 +01:00
Rémi Verschelde
5b6c9c66a4
Android: Default Min SDK to 24 for Vulkan mobile
...
Users can still go down to 21 when using GL Compatibility.
This makes the default behavior match the default renderer, and thus avoids
a warning in the out of the box experience.
Also mark texture compression settings as basic, since out of the box users
who want to export to Android will need to enable ETC2/ASTC manually.
2023-02-15 14:32:54 +01:00
Rémi Verschelde
47a8ee8814
Merge pull request #73268 from bruvzg/key_mod
...
[InputEventKey] Avoid setting both key and modifier to the same value.
2023-02-15 09:52:47 +01:00
Travis Veralrud
10be2c343f
iOS: Fix memory leak on touch input
...
Replace incomplete iOS gesture with touch implementation.
Fixes #66422 .
2023-02-15 09:45:38 +01:00
Andrés Botero
f249a9ce19
Added guide button to controller db, changed to use secret XInput function.
2023-02-15 01:01:09 -05:00
Thomas ten Cate
8a17f94ab2
Some fixes for initial window position and size
...
- X11: set main window position and size hints correctly
- All platforms: update minimum and maximum size of main window at
startup
Fixes #70984
2023-02-14 12:15:14 +01:00
bruvzg
a322f3f578
[InputEventKey] Avoid setting both key and modifier to the same value.
2023-02-14 09:05:58 +02:00
Hugo Locurcio
074d87d718
Update PCK embedding SCons warning message to mention mold linker
...
mold is now part of the SCons `linker` option.
2023-02-13 10:55:37 +01:00
Fredia Huya-Kouadio
b53e9614b8
Fix the issue causing long-press on a selected node on the scene tree to trigger both the context menu and the rename functionality
2023-02-12 21:04:36 -08:00
Emmanouil Papadeas
c36460060e
Further refactoring to AudioDriver implementations after #69120 .
...
- Rename all instances of `capture_start()` and `capture_end()` to their new
names. Fixes #72892 .
- More internal renames to match what was started in #69120 .
- Use `override` consistently so that such refactoring bugs can be caught.
- Harmonize the order of definition of the overridden virtual methods in each
audio driver.
- Harmonize prototype for `set_output_device` and `set_input_device`.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-02-09 11:02:00 +01:00
Rémi Verschelde
c4fb119f03
Merge pull request #72816 from m4gr3d/downgrade_vulkan_warning
...
Downgrade the vulkan abort logic to a warning
2023-02-08 11:24:48 +01:00
Fredia Huya-Kouadio
9d83e807e7
Downgrade the vulkan abort logic to a warning
...
This addresses issues where some drivers are reporting they don't meet the vulkan hardware level 1 support requirements even though they render as expected when the check is removed.
2023-02-07 16:16:58 -08:00
bruvzg
80dc7713f9
[X11] Do not suppress structure/focus events on popup close to correctly return focus.
2023-02-07 12:13:34 +02:00
Fredia Huya-Kouadio
2735ff7b68
Add HTC Vive focus XR manifest metadata
2023-02-06 17:20:45 -08:00
Rémi Verschelde
09b2c5fd05
Merge pull request #72552 from m4gr3d/cleanup_custom_build_main
...
Rename Godot's 'custom build' to 'gradle build' to better reflect the underlying build process
2023-02-06 22:50:22 +01:00
Rémi Verschelde
dcb1de1b6c
Merge pull request #72806 from m4gr3d/add_vulkan_filter_when_necessary
...
Improve logic to detect whether vulkan is used for rendering
2023-02-06 22:48:02 +01:00
Fredia Huya-Kouadio
21e18c1c41
Improve logic to detect whether vulkan is used for rendering
2023-02-06 10:13:02 -08:00
Rémi Verschelde
491c8ff4ee
Merge pull request #72780 from m4gr3d/add_vulkan_filter_when_necessary
...
Improve vulkan capability detection on Android
2023-02-06 15:40:15 +01:00
bruvzg
103f671ada
[X11] Fix IME window focus events.
2023-02-06 09:18:16 +02:00
Fredia Huya-Kouadio
034fd15b8a
Improve vulkan capability detection on Android
...
- Add runtime check and abort when the device doesn't meet the requirements for vulkan support
- Add filters to the AndroidManifest when exporting with a vulkan renderer
2023-02-05 18:47:38 -08:00
Patrick Dawson
7275819a91
DisplayServerWindows: Fix mouse capture when button up message is missed
2023-02-04 17:36:47 +01:00
Rémi Verschelde
d8c3fc1f56
Merge pull request #72624 from pkdawson/fix-last-focus
...
DisplayServerWindows: Update `last_focused_window` when the focused subwindow is deleted
2023-02-03 06:24:05 +01:00
Markus Sauermann
6165498d0e
Fix windowsize for fullscreen windows on windowcreation on Windows
...
Fortunately the location in the codebase was easy to find because there
was a FIXME comment.
2023-02-02 22:40:03 +01:00
Patrick Dawson
cba1fd7cca
DisplayServerWindows: Update last_focused_window
when the focused subwindow is deleted
2023-02-02 21:41:36 +01:00
Fredia Huya-Kouadio
ca593f2f89
Rename Godot's 'custom build' to 'gradle build' to better reflect the underlying build process.
2023-02-02 07:17:31 -08:00
Hugo Locurcio
e7779dc62d
Use a "warning" icon in OS.alert()
on Linux/*BSD
...
This is the same icon as used on Windows.
2023-02-02 15:17:15 +01:00
Rémi Verschelde
6daf4d6008
Merge pull request #72307 from zoeesilcock/fix/splash-minimum-display-time-macos
...
[MacOS] Fix so that the main window is displayed before the splash screen minimum display time starts counting
2023-02-02 09:38:01 +01:00
Fredia Huya-Kouadio
a715a00d76
Clean up the XR export logic
...
Remove the XR export logic from the legacy build system:
- On Android, Godot 4 export requires the use of Android plugins which are not supported by the legacy build system
- Provides added flexibility for configuring the Android manifest for XR specific capabilities.
2023-02-01 14:42:40 -08:00
Zoee Silcock
85ff7a2d2a
Fix so that the main window is displayed before the splash screen minimum display time starts counting on Mac OS
2023-02-01 16:21:58 +01:00
Rémi Verschelde
e52213e2fa
More codespell fixes, do more changes from previous ignore list
2023-02-01 12:11:36 +01:00
Rémi Verschelde
010a873b5b
Merge pull request #72495 from m4gr3d/implement_file_provider
...
Implement file provider capabilities
2023-02-01 11:10:28 +01:00
Rémi Verschelde
707ccc09ab
Merge pull request #72104 from bruvzg/popup-non-popups
...
Extend special popup window handling to any non-popup child of a popup.
2023-02-01 11:07:39 +01:00
bruvzg
9f42649823
[X11] Fix IME subwindow in the popup not getting input focus.
2023-02-01 11:10:10 +02:00
Fredia Huya-Kouadio
bdbeb0772f
Implement file provider capabilities
...
The previously used file sharing api was restricted after Android N causing the engine to crash whenever used on devices running Android N or higher.
2023-02-01 01:03:50 -08:00
Rémi Verschelde
b8ef55a427
Merge pull request #71174 from RedMser/fix-confined-mouse-mode-update
...
Fix confined mouse mode not updating on resize
2023-01-31 15:56:29 +01:00
Rémi Verschelde
eedc4553b5
Merge pull request #72426 from fire/4-warnings
...
Fixed a few godot engine 4 warnings on clang with Opengl and Windows …
2023-01-31 10:54:18 +01:00
K. S. Ernest (iFire) Lee
f8be889133
Fixed a few godot engine 4 warnings on clang with Opengl and Windows apis.
2023-01-30 17:00:02 -08:00
Juan Linietsky
28f51ba547
Refactor high quality texture import
...
* Only two texture import modes for low/high quality now:
* S3TC/BPTC
* ETC2/ASTC
* Makes sense given this is the general preferred and most compatible combination in most platforms.
* Removed lossy_quality from VRAM texture compression options. It was unused everywhere.
* Added a new "high_quality" option to texture import. When enabled, it uses BPTC/ASTC (BC7/ASTC4x4) instead of S3TC/ETC2 (DXT1-5/ETC2,ETCA).
* Changed MacOS export settings so required texture formats depend on the architecture selected.
This solves the following problems:
* Makes it simpler to import textures as high quality, without having to worry about the specific format used.
* As the editor can now run on platforms such as web, Mac OS with Apple Silicion and Android, it should no longer be assumed that S3TC/BPTC is available by default for it.
2023-01-30 15:53:23 +01:00
Rémi Verschelde
39b53f730a
Merge pull request #72370 from bruvzg/dead_xim
...
[X11] Add support for dead keys without active IME. Fix IME focus and cleanup.
2023-01-30 13:28:47 +01:00
Rémi Verschelde
bde3310f02
Merge pull request #71995 from Faless/net/4.x_tls_verify
...
[NET] Refactor TLS configuration.
2023-01-30 13:28:31 +01:00
bruvzg
4c50ac3921
[X11] Add support for dead keys without active IME. Fix IME focus and cleanup.
2023-01-30 13:31:48 +02:00
Fabio Alessandrelli
7cd80e6a6d
[Net] Remove StreamPeerTLS.blocking_handshake option.
...
Which was unused internally, and can be replaced by:
```
while tls.get_status() == tls.STATUS_HANDSHAKING:
tls.poll()
```
2023-01-28 11:08:02 +01:00
Fabio Alessandrelli
adba870534
[NET] Refactor TLS configuration.
...
Use a TLSOptions configuration object which is created via static
functions.
- "TLSOptions.client": uses the standard CA and common name verification.
- "TLSOptions.client_unsafe": uses optional CA verification (i.e. if specified)
- "TLSOptions.server": is the standard server configuration (chain + key)
This will allow us to expand the TLS configuration options to include
e.g. mutual authentication without bloating the classes that uses
StreamPeerTLS and PacketPeerDTLS as underlying peers.
2023-01-28 11:08:02 +01:00
Fredia Huya-Kouadio
179646e593
Update the XR manifest configs
...
Remove the ones provided automatically by the loaders, and the ones enabled by the default on the platform.
Fixes https://github.com/GodotVR/godot_openxr_loaders/issues/19
2023-01-27 17:59:28 -08:00
Rémi Verschelde
f0e3c3f4c3
Merge pull request #72168 from RandomShaper/sensible_lock_return
...
Booleanize various sync primitives' wait & locking methods
2023-01-27 15:40:43 +01:00
Pedro J. Estébanez
f630940591
Booleanize various sync primitives' wait & locking methods
2023-01-27 11:15:30 +01:00
Rémi Verschelde
a0a633ae58
Merge pull request #72102 from Riteo/keymapx11-scope-goodness
...
Put KeyMappingX11 stuff inside its own scope
2023-01-27 10:30:20 +01:00
daviirodrig
240374c58f
Fix split allow empty string in SSH export plugin
2023-01-27 05:09:30 -03:00
bruvzg
30a89b58e2
[Android] Fix virtual keyboard special keys.
2023-01-26 18:46:37 +02:00
Rémi Verschelde
3870861056
Merge pull request #72106 from m4gr3d/fix_godot_android_editor_4_crash_after_running_game
...
Fix the issue causing the Godot Android Editor to crash when returning from the launched and running game
2023-01-26 15:58:12 +01:00
Fredia Huya-Kouadio
ec4d720850
Fix the issue causing the Godot Android Editor to crash when returning from the launched and running game
...
The issue was caused because the running game pid was not set, and thus had a value of `0`. When trying to stop the running game, the `EditorRun::stop()` logic would kill the process with pid 0, which on Android corresponds to the running app's own process, thus causing the editor to crash.
This issue did not happen on Godot 3 because pid with value of `0` are not considered valid.
2023-01-26 02:59:39 -08:00
bruvzg
700d85bd19
Extend special popup window handling to any non-popup child of a popup.
2023-01-26 12:38:53 +02:00
Rémi Verschelde
cc7aa72f01
Merge pull request #72101 from bruvzg/x11_ime_unfocus
...
[X11] Fix IME focus return.
2023-01-26 09:53:05 +01:00
Rémi Verschelde
1cae673b54
Merge pull request #72099 from bruvzg/ime_commit
...
[Windows] Fix committing IME text without IME deactivation.
2023-01-26 09:52:17 +01:00
bruvzg
912c937921
[X11] Fix IME focus return.
2023-01-26 10:13:51 +02:00
bruvzg
e08a6e692d
[Windows] Fix committing IME text without IME deactivation.
2023-01-26 09:24:12 +02:00
Riteo
aa7cd71498
Put KeyMappingX11 stuff inside its own scope
...
This avoids collisions with other "concurrent" key mappers.
2023-01-26 03:19:36 +01:00
Fredia Huya-Kouadio
242ffb72b8
Address kotlin build warnings
2023-01-25 18:01:00 -08:00
bruvzg
c1c6ce9001
[Windows] Fix candidate window position with some third party IME engines.
2023-01-25 15:29:08 +02:00
Rémi Verschelde
67961d8ebf
Merge pull request #72029 from bruvzg/x11_keycode
...
[X11] Fix incorrect keycodes from non-QWERTY layouts.
2023-01-25 12:17:41 +01:00
bruvzg
1bb7e357a0
[X11] Fix incorrect keycodes from non-QWERTY layouts.
2023-01-25 13:04:02 +02:00
bruvzg
5ebb60e0cf
[X11] Make IME focus window input only.
2023-01-25 12:31:42 +02:00
Rémi Verschelde
4368191a9f
Merge pull request #72018 from bruvzg/x11_ime_loop
...
[X11] Prevent IME activation from entering infinite loop.
2023-01-25 09:44:50 +01:00
bruvzg
b713cfdccd
[X11] Prevent IME activation from entering infinite loop.
2023-01-25 10:21:27 +02:00
Rémi Verschelde
3f4b635077
Merge pull request #72017 from bruvzg/win_touc_no_reset
...
[Windows] Fix ToUnicodeEx resetting some dead key states.
2023-01-25 09:20:50 +01:00
bruvzg
8d51af1c8d
[Windows] Fix ToUnicodeEx resetting some dead key states.
2023-01-25 09:49:14 +02:00
Riteo
beaff2f5cb
Move xkbcommon dynamic loading code into generic linuxbsd folder
...
Since Wayland uses it too, it only makes sense to have it in the parent
directory of both.
2023-01-25 03:28:13 +01:00
Rémi Verschelde
3275428b1f
Merge pull request #71917 from m4gr3d/update_godot_android_editor_label
...
Update the Godot Android Editor name from `Godot Editor 4.x` to `Godot Editor 4`
2023-01-24 09:15:50 +01:00
Fredia Huya-Kouadio
6b400d2fd1
Update the Godot Android Editor name from Godot Editor 4.x
to Godot Editor v4
2023-01-23 14:04:05 -08:00
Rémi Verschelde
84b8986a39
Merge pull request #71836 from m4gr3d/fix_godot_editor_cropping_main
...
Update the logic to calculate the screen scale on Android
2023-01-23 22:30:46 +01:00
bruvzg
5c4fe6339b
[Linux/BSD] Include headers for dynamically loaded libraries to simplify build dependencies.
2023-01-23 16:37:43 +02:00
bruvzg
daad4aed62
Cleanup and unify keyboard input.
...
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes.
- Unify IME behaviour, add inline composition string display on Windows and X11.
- Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events.
- Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS.
- Add support for media key handling on macOS.
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-23 15:08:12 +02:00
Rémi Verschelde
5b1df48c6c
Convert en_GB spelling to en_US with codespell
2023-01-23 11:02:20 +01:00
Rémi Verschelde
59dce77d4f
Merge pull request #71848 from bruvzg/ios_gles
...
[iOS] Restore OpenGLES3 renderer support.
2023-01-23 10:24:51 +01:00
Rémi Verschelde
84c081945f
Merge pull request #71784 from PrecisionRender/fix-xbox-input
...
Fix Xbox Series controller detected as 2 devices
2023-01-23 10:24:41 +01:00
Fredia Huya-Kouadio
da3e380240
Update the logic to calculate the screen scale on Android
...
Takes into account the ratio between the screen size and the default window dimensions.
2023-01-22 10:58:01 -08:00
bruvzg
1cc5524b81
[iOS] Restore OpenGLES3 renderer support.
2023-01-22 13:59:52 +02:00
Rémi Verschelde
271920cc54
Merge pull request #71819 from Riteo/certified-musl-moment
...
Make PIE relocation detection glibc-only
2023-01-21 20:52:40 +01:00
Riteo
2a6ce37910
Make PIE relocation detection glibc-only
...
Musl doesn't compile with it, and by looking online I think that this is
a glibc only thing.
2023-01-21 17:59:52 +01:00
Rémi Verschelde
cbcb77096b
Merge pull request #71730 from reduz/fix-altgr-stuck
...
Fix AltGR getting stuck on Windows right Alt-Tab
2023-01-21 11:31:29 +01:00
Rémi Verschelde
a58f6a9dd6
Merge pull request #71220 from reduz/prevent-opening-windows-console-files
...
Prevent opening Windows console files
2023-01-21 11:28:31 +01:00
PrecisionRender
e9400867b3
Fix Xbox Series controller duplicate input
2023-01-20 21:34:06 -06:00
Rémi Verschelde
28b2e43adf
Merge pull request #71646 from Vilcrow/android-export-genname-check
...
[Android export] Added validation of the project name when using $genname in the 'Unique Name' field.
2023-01-20 23:59:34 +01:00
robfram
9faa92bda0
Exclude atomic lib under FreeBSD using LLVM
2023-01-20 20:52:19 +00:00
S.V.I. Vilcrow
b8bc306fa1
[Android export] Added validation of the project name when using $genname in the 'Unique Name' field.
2023-01-20 20:54:56 +03:00
Juan Linietsky
e01452adb0
Fix AltGR getting stuck on Windows right alt-tab
...
Fixes #28511 .
2023-01-20 14:04:55 +01:00
Rémi Verschelde
38488fbdb3
Merge pull request #71704 from akien-mga/web-editor-fix-download-zip
...
Web Editor: Fix callable binding for Download Zip menu item
2023-01-20 12:10:42 +01:00
Rémi Verschelde
fd314209eb
Web Editor: Fix callable binding for Download Zip menu item
...
Fixes #71702 .
2023-01-20 12:08:00 +01:00
bruvzg
aecfd92ea8
[macOS] Move Wno-deprecated-declarations
to pragmas in the OpenGL related files, update some deprecated code.
2023-01-20 11:31:07 +02:00
bruvzg
db7d8c2d87
[GDExtension] Expose some low level functions and String operators.
2023-01-19 12:50:49 +02:00
bruvzg
2529ab332c
[Windows] Fix sub-window initial transparency and always-on-top state.
2023-01-19 09:21:36 +02:00
Rémi Verschelde
30ba2c0629
Merge pull request #71599 from Faless/web/4.x_userfs_path
...
[Web] User FS (user://) now correctly uses project name.
2023-01-18 17:32:25 +01:00
Fabio Alessandrelli
4707e78d6d
[Web] User FS (user://) now correctly uses project name.
...
This allows multiple instances to co-exist in the same domain while
keeping their user data separate (each in its own folder).
2023-01-18 09:12:21 +01:00
Rémi Verschelde
6da836bbb4
Merge pull request #71514 from akien-mga/os-unset_environment
...
OS: Add `unset_environment`, better validate input
2023-01-18 08:35:43 +01:00
Rémi Verschelde
68d71f88f5
Improve DisplayServer message for video card drivers failure
...
And remove leftover duplicated message on Android.
2023-01-17 15:41:54 +01:00
bruvzg
60e0043012
Fix X11 input region size.
2023-01-17 07:54:54 +02:00
Rémi Verschelde
91a54cdbc1
Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checks
2023-01-16 17:01:35 +01:00
Rémi Verschelde
818a9e99a4
OS: Add unset_environment
, better validate input
...
Instead of returning an undocumented boolean error code, we do the
validation checks that should ensure a successful result.
Based on:
- https://linux.die.net/man/3/setenv
- https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable
2023-01-16 16:39:44 +01:00
bruvzg
34b34b104c
Add WINDOW_FLAG_MOUSE_PASSTHROUGH
flag and enabled it for tooltips. Expose window_set_mouse_passthrough
to Window
.
2023-01-16 11:42:49 +02:00
bruvzg
7fc8716aac
[Windows] Fix incorrect full-screen mode applied on start.
2023-01-16 09:17:20 +02:00
Rémi Verschelde
9711abe787
Merge pull request #71437 from vaartis/linux-backtrace
...
Alter linux debug stacktraces handling to support more environments
2023-01-15 13:09:31 +01:00
Ekaterina Vaartis
5e041eee11
Alter linux debug stacktraces handling to support more environments
...
- Use -gdwarf-4 to support both LLVM and GCC when calling addr2line
- Subtract position-independant execuable relocation when passing the
address to addr2line
2023-01-15 02:48:33 +03:00
Yuri Sizov
4c1f11944e
Update all outdated online documentation links
2023-01-14 19:38:00 +03:00