bruvzg
ab7765997b
[macOS] Update activation hack to work on Ventura.
...
(cherry picked from commit 153d06d79b
)
2022-11-30 15:34:27 +01:00
Abdulrahman Al Zeidi
5ada214c51
Fix static object destructors being called on gpu selection with X11
...
(cherry picked from commit 5860f81c18
)
2022-11-30 15:34:27 +01:00
Pedro J. Estébanez
de6b5f992b
Fix newlines not honored in Windows console
...
This is relevant when building with `windows_subsystem=console`.
(cherry picked from commit e14c5186e2
)
2022-11-30 15:34:26 +01:00
Rémi Verschelde
86d5bb7f20
Merge pull request #68858 from bruvzg/win_regen_icon3
...
[3.x] Windows icon export improvements.
2022-11-28 10:16:26 +01:00
Dan
d789ad4b20
fix exporting Android APPLICATION_ATTRIBS (3.X)
2022-11-22 12:24:17 -08:00
bruvzg
44739a121e
[3.x] Windows icon export improvements.
...
Regenerate Windows icon on export to ensure correct icon size order.
Add support for using PNG/WebP/SVG files as an icon for Windows exports.
Allow using WebP/SVG files as icon for macOS exports.
Add option to select generated icons interpolation, and set default interpolation to Lanczos.
2022-11-20 13:02:27 +02:00
Fredia Huya-Kouadio
5aab84befb
Fix 'save & restart' logic for the Android Editor
2022-11-16 03:29:40 -08:00
bruvzg
dbb52395bc
[macOS] Disable Dock and Menu in fullscreen mode.
2022-11-14 07:59:29 +02:00
Fredia Huya-Kouadio
5149311316
Add support for pointer capture
2022-11-07 08:38:28 -08:00
Rémi Verschelde
92aedd5063
Merge pull request #68190 from ztc0611/3.x-ios-promotion
...
[3.x] Add ProMotion/High Refresh Rate Support to iOS Exports
2022-11-03 11:34:22 +01:00
Zach Coleman
e538771d4f
[3.x] Add ProMotion Support to iOS Exports
2022-11-02 22:14:34 -04:00
Zach Coleman
5e7b0e3a61
[3.x] Add iOS UI Options
2022-11-02 22:13:18 -04:00
Fredia Huya-Kouadio
be4b07c3e4
Add double_tap
attribute to InputEventScreenTouch
...
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-20 11:56:11 -07:00
Fredia Huya-Kouadio
71c76a4ff2
Update the clean
task configuration
...
Running `gradlew clean` will now properly delete the generated build artifacts
2022-10-18 20:37:23 -07:00
Jason Knight
6812e66f33
Change auto to default in cursor css settings.
2022-10-07 12:17:15 -06:00
Fredia Huya-Kouadio
6f153593dc
Merge pull request #66945 from m4gr3d/add_mouse_cursor_shape_support_3x
...
Add cursor shape support for the Android platform
2022-10-05 13:06:58 -07:00
Fredia Huya-Kouadio
46f091a803
Add cursor shape support for the Android platform
2022-10-05 12:08:54 -07:00
Jason Knight
31fe6848e8
Fix null in android keyboard handling.
2022-10-05 11:18:39 -06:00
Rémi Verschelde
6f6c8b114b
HTML5: Add missing OS::get_cursor_shape()
implementation
...
Fixes #66835 .
2022-10-04 12:49:16 +02:00
bruvzg
77fc88e9a6
[Windows, 3.x] Fix WM_CHAR processing code using Unicode char instead of Virtual key.
2022-09-23 20:22:05 +03:00
Rémi Verschelde
8a6763cf74
Merge pull request #66216 from Calinou/windows-enable-ansi-escape-codes-3.x
2022-09-22 09:33:40 +02:00
Hugo Locurcio
257305c58d
Enable ANSI escape code processing on Windows 10 and later
...
This lets the engine and projects use the same color codes
in the terminal on all platforms.
2022-09-21 17:22:12 +02:00
bruvzg
47d2b4e732
[macOS export, 3.x] Simplify code signing options, add support for rcodesign tool for signing and notarization.
2022-09-21 10:37:25 +03:00
Ted Spikes
4356077153
Check for ios_simulator when building for x86_64
...
(cherry picked from commit 21f7bd0723
)
2022-09-20 10:26:17 +02:00
Rémi Verschelde
d5c1baa288
SCons: Refactor handling of production
flag and per-platform LTO defaults
...
Fixup to #63288 .
See #65583 for the bug report.
Co-authored-by: Cyberrebell <chainsaw75@web.de>
(cherry picked from commit 35a15e6191
)
2022-09-20 10:26:17 +02:00
Fredia Huya-Kouadio
1f23bac645
Disable menus and functionality that are not relevant on the Android Editor port
2022-09-13 07:38:07 -07:00
Fredia Huya-Kouadio
da332d69c0
Exclude small screens from the set of supported devices.
2022-09-12 08:00:23 -07:00
Fredia Huya-Kouadio
f37390cbc5
Update the versioning logic for the Godot Android Editor
...
This is necessary to separate subsequent uploads to the Google Play store as each upload needs to increment the version code.
2022-09-12 07:59:45 -07:00
Rémi Verschelde
953dea1227
Merge pull request #63309 from akien-mga/3.x-scons-refactor-lto
2022-09-08 11:24:54 +02:00
Rémi Verschelde
05e7275fce
Merge pull request #65365 from akien-mga/3.x-html5-emsdk-3.1.20
2022-09-08 10:11:06 +02:00
Rémi Verschelde
bfe60393f5
Merge pull request #65503 from m4gr3d/fix_invalid_project_manager_path_3x
2022-09-08 09:48:43 +02:00
Fredia Huya-Kouadio
4be7c91cd9
Fix issue causing the project manager to crash because of missing path argument
...
In the process, the initialization logic is updated to show an error message and gracefully close the engine when setup errors occur.
2022-09-07 14:25:22 -07:00
Fredia Huya-Kouadio
63df48a59c
Enable long press, pan and scale gestures for the Godot Android Editor
...
Fix the bug causing the editor to crash when running the project.
2022-09-07 13:29:31 -07:00
Fredia Huya-Kouadio
440fa10246
Cleanup the Android input logic implementation
2022-09-07 13:29:31 -07:00
Rémi Verschelde
5271d69909
HTML5: Fix warning with Emscripten 3.1.20
...
And use that version for CI.
2022-09-05 15:37:33 +02:00
Rémi Verschelde
570e6c1730
SCons: Refactor LTO options with lto=<none|thin|full>
...
Adds support for LTO on macOS and Android.
Disable LTO by default on iOS even if `production=yes` is set.
Also add `linker` option to `server` platform missed in #63283 .
Refactor code handling old arguments to make it simpler (breaks compat,
but is explicit enough about it and scripts are easy to fix).
2022-09-05 14:45:12 +02:00
Rémi Verschelde
0881ca5cca
Merge pull request #64778 from akien-mga/3.x-mono-uwp-unsupported
2022-08-31 21:03:55 +02:00
Fredia Huya-Kouadio
9910d4681d
Additional fixes to the Android get_current_dir()
implementation.
2022-08-30 10:08:30 -07:00
Rémi Verschelde
aeb70fc0e2
Merge pull request #65043 from akien-mga/3.x-cherrypicks
2022-08-30 12:51:53 +02:00
bruvzg
3a24839cb2
[3.x, macOS / iOS Export] Fix generation of duplicate locale property list files.
2022-08-30 08:16:49 +03:00
Rémi Verschelde
44af879438
Linux: Fix GNU ld detection for pck_embed linker script
...
(cherry picked from commit fce3602a1e
)
2022-08-29 15:55:45 +02:00
Rémi Verschelde
abaa76fcf9
CI: Sync configuration with master branch
...
Updates various actions to latest versions:
actions/cache@v3
actions/checkout@v3
actions/upload-artifact@v3
actions/setup-dotnet@v2
actions/setup-java@v3
actions/setup-python@v4
mymindstorm/setup-emsdk@v11
2022-08-25 14:11:54 +02:00
Rémi Verschelde
59402ff8ad
Merge pull request #64631 from nathanfranke/3-ios-opaque
...
(3.x) iOS: Force app store icon to be opaque, use proper errors, fix memory leak
2022-08-25 08:43:14 +02:00
Rémi Verschelde
8388ea1d6b
Merge pull request #64839 from akien-mga/3.x-zstd-1.5.2
...
zstd: Update to upstream version 1.5.2
2022-08-25 00:51:28 +02:00
bruvzg
c4885c8be8
Use clang as assembler to ensure preprocessing is done, and add assembler "target" flag.
...
(cherry picked from commit e873778561
)
2022-08-24 18:26:29 +02:00
bruvzg
b7c9eb1a3c
Add arch flag to assembler to fix build on ARM64 macOS / iOS.
...
(cherry picked from commit b767d2e0fd
)
2022-08-24 18:26:28 +02:00
Jamie Pate
562d7c616d
Improve performance of screen_get_dpi() in Javascript
...
Replace a bisect with a single multiplication when calling
screen_get_dpi() in Javascript
Tested the value of
window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches
which is true except for values that cause a lot of rounding errors
(e.g. dpr : 0.3 => resolution: 28.799999999999997dpi)
Even in these cases the value matches the result of the previous
`findDPI()` method.
See also:
6cff589b5b (r81273660)
(cherry picked from commit c2e3971013
)
2022-08-24 17:16:33 +02:00
Pedro J. Estébanez
0876491983
Clean iOS platform config of long gone macro
...
(cherry picked from commit 8c2a577350
)
2022-08-24 17:13:21 +02:00
Rémi Verschelde
ceef056146
Mono: Show custom error explaining that UWP is not supported
...
Fixes #64490 .
2022-08-23 13:21:10 +02:00
Fredia Huya-Kouadio
b5e1096c61
Fix issue with get_current_dir()
returning the wrong path on Android
2022-08-19 20:32:55 -07:00
Nathan Franke
da3aecff01
3.x: ios: force app store icon to be opaque, use proper errors, fix memory leak
2022-08-19 13:18:01 -05:00
Fredia Huya-Kouadio
989d5990ad
Merge pull request #64420 from m4gr3d/investigate_read_write_access_loss_3x
...
[3.x] Fix issue preventing the Android Editor from displaying the project content
2022-08-15 13:19:01 -07:00
Fredia Huya-Kouadio
3ac6b6a596
Disable threads used to check on plugins to load
...
The functionality is unavailable on Android (requires export capability) and unnecessarily consumes resources
2022-08-15 02:30:08 -07:00
Fredia Huya-Kouadio
30479543b0
Fix issue preventing the Android Editor from displaying the project content
...
The issue was causing by a bug within the logic for `FileAccessFilesystemJAndroid#eof_reached()` causing that value to remain false after the eof was reached.
This in turn caused an infinite loop in the file scanner preventing the project's content from showing up.
2022-08-15 02:21:34 -07:00
Fredia Huya-Kouadio
ef44e63f22
Fix GodotTTS native initialization
2022-08-14 22:01:31 -07:00
Fredia Huya-Kouadio
d2213f76a9
Refactor the export checking logic to improve separation of concerns
2022-08-14 08:47:09 -07:00
Sergey Minakov
e8035ffe84
[iOS] Extend iOS plugins to support Swift runtime
2022-08-09 20:19:12 +03:00
Rémi Verschelde
6eee83579a
Merge pull request #64101 from timothyqiu/subsecond
2022-08-08 16:31:49 +02:00
Rémi Verschelde
8cc8127bb1
Merge pull request #62886 from madmiraal/fix-59931-3.x
2022-08-08 15:54:39 +02:00
Rémi Verschelde
7dc8ec0c61
Merge pull request #63643 from aaronfranke/3.x-mouse-mode-ch
2022-08-08 14:36:45 +02:00
Haoyu Qiu
1be078ebcb
Fix Time.get_unix_time_from_system() not including msecs
2022-08-08 20:31:51 +08:00
bruvzg
8147f04db6
[Linux] Disable speech-dispatcher, pulseaudio and udev wrapper builds, when library is not found.
2022-08-06 11:54:20 +03:00
Rémi Verschelde
0bed7ea63f
Merge pull request #61316 from bruvzg/tts_3x
...
[3.x] Backport text-to-speech support.
2022-08-05 23:45:51 +02:00
Rémi Verschelde
26762a71b6
Merge pull request #58537 from winterpixelgames/feature/virtual-keyboard-types-3.x
2022-08-05 19:37:13 +02:00
bruvzg
e0101e511c
Improve some export error messages.
...
(cherry picked from commit ea00cf7270
)
2022-08-01 10:37:04 +02:00
Rémi Verschelde
751b16a285
File: Re-add support to skip CR (\r
) in File::get_as_text
...
This was removed in #63481 , and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.
For performance this is done directly in `String::parse_utf8`.
Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.
Supersedes #63717 .
(cherry picked from commit 1418f97c70
)
2022-08-01 00:40:55 +02:00
Rémi Verschelde
10e8a25ce7
SCons: Fix X11 use_lld
fallback not being applied
2022-07-31 13:49:12 +02:00
Aaron Franke
0d6e2d1090
Add MOUSE_MODE_CONFINED_HIDDEN to MouseMode enum
2022-07-29 13:46:04 -05:00
pattlebass
fb7ecc748f
[3.x] HTML5: Add support for Input.vibrate_handheld()
2022-07-28 13:20:05 +03:00
Rémi Verschelde
6c8d9b8401
Merge pull request #63480 from m4gr3d/fix_remaining_scoped_storage_regressions_3x
...
[3.x] Address remaining scoped storage regressions
2022-07-26 18:15:14 +02:00
Fredia Huya-Kouadio
fc2c202312
Address remaining scoped storage regressions
...
- Accelerate common path used to check the storage scope for a given path
- Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
2022-07-26 07:42:49 -07:00
Kevin Smith
01cfcab5c6
Use bigobj for release MSVC builds
...
Previously it was used only on debug builds, but recent
additions to variant_call.cpp have made that unit too
large even in release_debug.
It was originally set to debug only because using it
breaks mingw, so this only reinstates it for MSVC where
it shouldn't have any drawbacks (famous last words).
Test-Information:
Builds for me with
scons -j 40 platform=windows target=release_debug
and my game then runs from it.
(cherry picked from commit d8900e0020
)
2022-07-26 11:01:55 +02:00
Rémi Verschelde
818f1eed31
Code quality: Fix header guards consistency
...
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
Pedro J. Estébanez
a0448f1d5e
Flush buffered input events on UWP
...
(cherry picked from commit b53d032fb8
)
2022-07-25 11:44:36 +02:00
Rémi Verschelde
364071c2c4
Merge pull request #63283 from akien-mga/3.x-scons-linux-refactor-linker
2022-07-22 11:40:29 +02:00
Hansem Ro
a36902f2c1
[3.x, X11] Do case-insensitive search for pen inversion detection
2022-07-21 19:25:39 -07:00
Rémi Verschelde
5bb3063eec
SCons: Refactor Linux linker options with linker=<bfd|gold|lld|mold>
...
The new option is `linker` and lets the user specify the argument to
the`-fuse_ld=` linker flag directly. The supported options are:
- `default`: No change, typically uses GNU ld (bfd) unless the user or
distro picked a different default `/usr/bin/ld`.
- `bfd`: GNU ld from binutils
- `gold`: GNU gold from binutils
- `lld`: lld from LLVM
- `mold`: mold, an extremely fast modern linker, not (yet) intended for
use in production but great for development speed. Provided by distro
`mold` package or needs to be compiled from source and installed to
`/usr` otherwise.
Deprecates the `use_lld=yes` option, and make lld actually usable with
GCC too.
Not all the above are compatible or recommend for LTO, we recommend
using GNU ld with GCC LTO, or lld with LLVM ThinLTO.
(cherry picked from commit 534f85add1daec0669a1f18edd2cc456f9a296ef)
2022-07-22 01:03:31 +02:00
bruvzg
108dcf3bf0
Improve OS.set_current_screen
...
Fix moving fullscreen windows on macOS and Windows
Fix window position on Linux/X11
2022-07-19 12:23:52 +03:00
pattlebass
82c3e6229b
HTML5: Make OS.get_locale()
match other platforms
...
Fixes #63029 .
(cherry picked from commit d57a76c809
)
2022-07-15 23:25:01 +02:00
Rémi Verschelde
101cbe5d5b
Merge pull request #62723 from hansemro/eraser-detect-3.x
2022-07-15 00:13:15 +02:00
Marcel Admiraal
2f7de4c8ed
Fix incorrect Android scancodes
2022-07-13 16:24:37 +01:00
Pedro J. Estébanez
0348fa2640
Flush accumulated input events on iOS
2022-07-08 20:01:19 +02:00
Jan Haller
861e155543
Fix exit code of --help and --version, and test them in CI
...
Corrects prior regression which caused ERROR output and exit code of 1.
(cherry picked from commit d38d76d039
)
2022-07-08 14:54:16 +02:00
Brian Semrau
ce24b48e50
Add support for multiple virtual keyboard types
2022-07-07 14:22:28 -04:00
Fredia Huya-Kouadio
27b63247fd
Fix issue causing the Android Editor port to crash when saving a scene
...
In addition:
- Disable 'adb devices' query (not supported when running the editor on Android devices
- Add `move_to_trash` implementation for Android devices
2022-07-05 02:59:52 -07:00
Hansem Ro
193d5c11f3
[3.x, macOS, Windows, X11] Add stylus inverted/eraser support to InputEventMouseMotion event
2022-07-04 16:12:11 -07:00
Fredia Huya-Kouadio
0abc4ad129
Fix the directory copy bug issue
...
The issue was caused by a logic bug causing end of file to be reported for empty files.
2022-07-04 12:56:53 -07:00
Rémi Verschelde
f089f77c2a
Android: Refactor Custom Build options in export preset
...
Instead of reusing the custom_template/ prefix which is actually only
used for the prebuilt APK workflow, we add a new custom_build/ prefix.
This is a slight compat breakage (users will have to redo their config)
but enables us to group the Min SDK and Target SDK options where they make
sense, and avoid reusing the previously hardcoded Target SDK 30 from
Godot 3.4.
Those two options are now strings instead of integers so that we can keep
them empty by default, and show their default value using a placeholder.
So some validation has been added to make sure they are proper ints.
The upper bound on Target SDK was also removed as it's a common use case
to use it to try to target newer released SDKs. But we warn the user that
this wasn't validated by us.
The export info dialog is now exclusive so that when it doesn't auto-close,
i.e. when it errors, you don't close it by mistake by clicking outside.
Fixes #62465 .
2022-07-03 17:09:41 +02:00
Raffaele Picca
3f8830ec50
Fix default cursor in html5 export.
2022-07-01 20:46:58 +02:00
bruvzg
6489fe890e
Backport text-to-speech support.
2022-07-01 11:04:50 +03:00
Fabio Alessandrelli
2882eaab28
Merge pull request #62522 from Calinou/html5-editor-no-maximize-on-start-3.x
...
Fix window maximize error message appearing when starting the web editor (3.x)
2022-07-01 09:57:33 +02:00
Hugo Locurcio
786ff06ed7
Fix window maximize error message appearing when starting the web editor
...
An error message is no longer printed when trying to maximize the window
in HTML5. This behavior is consistent with Android and iOS.
2022-07-01 01:54:15 +02:00
Wilson E. Alvarez
cf38b6f187
Properly check for fullscreen toggle made through the Window Manager
2022-06-29 21:55:51 -04:00
ne0fhyk
24e3b3b88d
Add full support for Android scoped storage.
...
This was done by refactoring directory and file access handling for the Android platform so that any general filesystem access type go through the Android layer.
This allows us to validate whether the access is unrestricted, or whether it falls under scoped storage and thus act appropriately.
2022-06-26 16:53:02 -07:00
Rémi Verschelde
98b4a7c2da
Merge pull request #61692 from madmiraal/android-ndk-23-3.x
...
[3.x] Upgrade Android NDK to r23 LTS
2022-06-26 21:24:14 +02:00
Rémi Verschelde
af4e3cb931
Merge pull request #62290 from madmiraal/fix-61816-3.x
...
[3.x] Remove broken scroll gesture on Android
2022-06-26 08:38:08 +02:00
Marcel Admiraal
061c280873
Upgrade Android NDK to r23 LTS
2022-06-25 16:02:19 +01:00
Gustavo Maciel
a38119a746
Update android:targetSdkVersion from 30 to 31
...
Starting in August 2022, new apps will need to target API level 31 (Android 12) or higher and adjust for behavioral changes.
Read more here: https://developer.android.com/google/play/requirements/target-sdk
(cherry picked from commit ec6d5d6cba
)
2022-06-23 15:59:15 +02:00
Marcel Admiraal
9091309ab7
Remove broken scroll gesture on Android
2022-06-21 17:04:42 +01:00
Jiri Suchan
daf6fdf0b7
refactoring: simplify compiler version check
...
(cherry picked from commit 8d94d26caf
)
2022-06-17 10:08:49 +02:00
Marcel Admiraal
50bf882fcc
Ensure joystick has been added or not already removed when processing input
...
(cherry picked from commit 806e7d18d1
)
2022-06-16 20:47:49 +02:00
Rémi Verschelde
2cad0055fa
Merge pull request #60806 from pfertyk/issue-60466-nan-in-windows-size
2022-06-15 14:55:01 +02:00
Paweł Fertyk
b3f822eaae
Fix set_window_size
crash when using NaN
...
Fixes #60466 .
2022-06-15 13:43:41 +02:00
Rémi Verschelde
0d2be435ea
Merge pull request #61989 from Faless/js/3.x_threads_gdnative_export
2022-06-13 12:08:48 +02:00
Fabio Alessandrelli
65dc01bd8e
[HTML5] Add GDNative+Threads build.
2022-06-13 11:46:08 +02:00
bruvzg
e75e1f3231
[macOS, 3.x] Fix unresponsive redraw during live resizing.
2022-06-10 14:11:12 +03:00
Fredia Huya-Kouadio
5946b4bdc6
Migrate the Godot Editor java source file to Kotlin.
...
(cherry picked from commit 6b9a81900e
)
2022-06-10 10:25:37 +02:00
bruvzg
f5fa1ca944
Add readable export errors. Add RTL image vertical alignment support.
2022-06-08 17:56:28 +03:00
Fredia Huya-Kouadio
05fc140ee6
Misc editor tweaks and polishes:
...
- Using a bucketized approach to select the editor scale in order to avoid too high values
- Add default app dimensions: used on Android devices with free floating app windows to set the default app frame
- Add ability to launch the Game window in an adjacent frame when in multi window mode
(cherry picked from commit 6f7ec7f723
)
2022-06-08 10:11:28 +02:00
Marcel Admiraal
9f0dba8b65
Ensure Android Java and Kotlin compile to the same version
2022-06-01 16:24:12 +01:00
Marcel Admiraal
caaaef68b4
Only use Android fullscreen theme for splash screen
...
(cherry picked from commit d0cb299f04
)
2022-06-01 00:29:46 +02:00
Marcel Admiraal
7a782edeaa
Cleanup Android C++ code
2022-05-31 17:11:44 +01:00
Rémi Verschelde
f880904c7a
HTML5: Run npm audit fix
...
And re-add `node_modules` to `.gitignore` which I mistakenly removed
with an earlier cleanup.
(cherry picked from commit 6aa7449d60
)
2022-05-25 14:59:03 +02:00
Rémi Verschelde
9d1d386bd0
HTML5: Enable mbedTLS module for Crypto object
...
Increases the size of the wasm by around 3% (~300-350 KiB).
This enables using the Crypto object for hashing, signing and encryption,
and therefore reduces the gap between the features of the HTML5 platform
and other platforms.
Closes https://github.com/godotengine/godot-proposals/issues/3574 .
(cherry picked from commit 3ff6d794c0
)
2022-05-25 14:52:57 +02:00
Rémi Verschelde
2b2a1b4c71
Android: Change export plugin poll to 300 ms
...
This removes the reliance on the not-so-fully-implemented Power API,
which throws an error in the HTML5 editor.
This was already changed to 200 ms in the master branch, and here I
picked 300 ms to be consistent with the iOS export plugin. All these
thread sleeps need to be re-assessed together to be made more
consistent (and possibly configurable - and most importantly battery
preserving by default).
2022-05-25 12:16:24 +02:00
Marcel Admiraal
b66b153b8c
Remove duplicate Android sensor listener registrations
...
(cherry picked from commit cf0f967e6d
)
2022-05-24 00:06:20 +02:00
Rémi Verschelde
e0ddaf7137
Merge pull request #61332 from m4gr3d/fix_restart_logic_3x
2022-05-23 22:25:44 +02:00
Fredia Huya-Kouadio
b162e7ac39
Fix the logic to restart the Godot application
2022-05-23 13:15:25 -07:00
bruvzg
c8978f58af
[Windows, 3.x] Remove cached icon earlier, to prevent double free crash on exit.
2022-05-23 10:33:42 +03:00
ElCosmoXD
432e752028
Fixed the missing DLL's issue
2022-05-21 17:43:25 -04:00
Rémi Verschelde
7a70b4878b
Merge pull request #61021 from timothyqiu/wait-busy-3.x
2022-05-19 15:41:47 +02:00
Haoyu Qiu
b657d0c76c
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NOEDITOR
2022-05-19 11:31:35 +08:00
Hugo Locurcio
0df7aa1e2c
Increase compiler optimization when using target=release
on iOS/Android
...
(cherry picked from commit 78b4ec2d4d
)
2022-05-16 17:52:07 +02:00
Haoyu Qiu
ddb7774099
Try to convert OS::execute() output to Unicode on Windows
...
(cherry picked from commit a71e808112
)
2022-05-16 16:47:16 +02:00
bruvzg
2d3f5855c6
[Windows] Save and re-apply window icon when changing window style.
...
(cherry picked from commit b268c4b4bc
)
2022-05-16 16:42:25 +02:00
Timo Schwarzer
8b55b80056
Fix vibration duration on iOS
...
Fixes #61063
2022-05-16 10:33:41 +02:00
Haoyu Qiu
4c70c5b0cd
Swap the meaning of CURSOR_WAIT and CURSOR_BUSY
2022-05-14 10:24:25 +08:00
Andy Maloney
7c6564ef7e
[3.x] Fix sign comparison error in platform/osx/os_osx.mm
2022-05-07 20:56:48 -04:00
Marcel Admiraal
89c758a4de
Read and store joypad events in a separate thread on x11 platform
2022-05-05 16:15:33 +02:00
Rémi Verschelde
4dfc44ecc3
Merge pull request #60788 from akien-mga/3.x-cherrypicks
2022-05-05 15:54:33 +02:00
mdavisprog
53fb0440d3
Add OS::is_process_running function.
...
Adds the is_process_running function to the native OS class and exposes it to script.
This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.
Documentation is updated to reflect new API function.
(cherry picked from commit f3c1232c59
)
2022-05-05 15:02:46 +02:00
Fabio Alessandrelli
cc12c69ea1
[JS] Add flag to disable weak symbols in ZSTD.
...
Weak symbols are currently broken in upstream emscripten.
(cherry picked from commit 070bd87aaa
)
2022-05-05 14:07:56 +02:00
Fabio Alessandrelli
89c8a8d1dc
Added missing signature.
...
(cherry picked from commit a4c3e915be
)
2022-05-05 14:07:56 +02:00
Paulo Feodrippe
c46bbdee53
Fix simulatenous touches for different touch types
...
(cherry picked from commit a6f06d57dc
)
2022-05-05 13:49:50 +02:00
Marcel Admiraal
fe60de2c6a
Check for null when retrieving clip data item text on Android
...
(cherry picked from commit 5924e2b90e
)
2022-05-05 13:44:00 +02:00
Rémi Verschelde
3b8818e5c4
Crash handler: Use print_error
to include backtrace in logs
2022-05-05 12:13:04 +02:00
bruvzg
0be7de6e11
[3.x] Fix export plugins after embedded PCK loading changes.
2022-05-04 12:56:00 +03:00
Rémi Verschelde
917a749964
Merge pull request #60639 from m4gr3d/support_hand_tracking_v2_3x
2022-05-02 09:51:35 +02:00
Rémi Verschelde
d8e702b010
Merge pull request #60552 from madmiraal/implement-3466-3.x
...
[3.x] Add a method for obtaining display cutouts on Android
2022-05-02 07:58:05 +02:00
bruvzg
bea7c9be5d
[3.x] Improve embedded PCK loading and exporting.
2022-04-28 11:11:48 +03:00
Fredy Huya-Kouadio
32ace78a3e
Update Meta hand tracking version
...
https://developer.oculus.com/blog/presence-platforms-hand-tracking-api-gets-an-upgrade/
2022-04-27 21:14:49 -07:00
Rémi Verschelde
d021cef134
Linux: Use pkg-config for alsa, libudev and GL too
...
It's not needed on most distros as those are found in standard lib
and include paths, but on NixOS they're all in non-standard prefixes,
so we need to rely on information provided by pkg-config.
Fixes #59913 .
Co-authored-by: David Lewis <davidalewis00@gmail.com>
(cherry picked from commit 07ad066420
)
2022-04-27 12:34:58 +02:00
Marcel Admiraal
9a4d4ec2d5
Remove superfluous null check
...
(cherry picked from commit 988432b8bb
)
2022-04-27 12:25:58 +02:00
Marcel Admiraal
76b5c31433
Replace index iterators with for each loops.
...
(cherry picked from commit 334ebd7eb7
)
2022-04-27 12:25:47 +02:00
Marcel Admiraal
23b649b673
Remove superfluous check for minimum Android SDK.
...
(cherry picked from commit 2f225bf2c5
)
2022-04-27 12:25:34 +02:00
Timo Schwarzer
8fb9c96df9
Vibrate using iOS haptics engine on supported devices (3.x)
2022-04-27 09:46:42 +02:00
Marcel Admiraal
ec2270b88f
Add a method for obtaining display cutouts on Android
2022-04-26 13:52:33 +02:00
Haoyu Qiu
95d861694a
Fix several OS_X11 memory leaks
2022-04-26 08:39:55 +08:00
Rémi Verschelde
ba21c76b46
Merge pull request #60442 from madmiraal/remove-superfluous-inputmanager-3.x
2022-04-25 15:42:06 +02:00
Fredy Huya-Kouadio
7a88d5bf28
Fix the issue causing the screen to be black after resuming when in low processor mode.
...
This is done by forcing a redraw and buffers swap when resuming the app.
2022-04-25 00:20:44 -07:00
Marcel Admiraal
b5402818d7
Remove superfluous Android InputManager interface and implementation
2022-04-22 19:10:01 +02:00
Fredia Huya-Kouadio
a3b445d7e8
Remove duplicate resizable
settings
...
(cherry picked from commit f1a7caf9bb
)
2022-04-13 11:43:49 +02:00
Fredia Huya-Kouadio
4ff726b933
Update resize
settings:
...
- Unlock resizing for the Godot Editor
- Add an option to specify whether a game is resizeable for the Godot template
(cherry picked from commit 3f299e9255
)
2022-04-13 11:43:49 +02:00
Lyuma
f28309aa86
Keep editor at normal priority on windows.
...
The multithreaded importer often causes system-wide hangs when importing more than 20 files at a time.
Running the editor at normal priority allows other applications on the system to be responsive during long imports.
(cherry picked from commit ee02a7f785
)
2022-04-13 11:43:48 +02:00
bruvzg
1f51bae294
[macOS, 3.x] Fix OpenGL color space on HDR displays.
2022-04-13 10:34:09 +03:00
C.Even
cfe0991b20
Retrieve primary monitor size in fullscreen mode
...
* Fixes #21674
2022-04-07 18:51:16 +08:00
Fredia Huya-Kouadio
3ba0508f79
Update the editor display scale based on the device's scaled density
2022-04-04 04:18:56 -07:00
Haoyu Qiu
bccd23f4bf
Fix memory leak when handling Linux primary clipboard
2022-04-01 21:55:53 +08:00
ConteZero
59fb6c9ef0
Fix X11 is_window_maximized
2022-03-31 23:10:32 +02:00
Rémi Verschelde
3c0d32562b
Merge pull request #59606 from m4gr3d/fix_low_processor_mode_3x
...
[3.x] Fix flickering issues with low processor mode on Android
2022-03-29 22:51:32 +02:00
Fredia Huya-Kouadio
8ca32d1727
Fix flickering issues with low processor mode on Android
2022-03-29 12:17:25 -07:00
pkowal
5e5154e5b9
Change godot.ico to uncompressed/fixed size
...
(cherry picked from commit d469cfb2ab
)
2022-03-28 23:43:46 +02:00
Fredy Huya-Kouadio
6f2442b17a
Cleanup the gradle build configuration
...
These changes resolve the inconsistency between gradle and scons targets by configuring the gradle buildtypes to match the scons targets.
2022-03-28 08:12:55 -07:00
Fredy Huya-Kouadio
cb0b2aefc3
Android port of the Godot Editor
...
These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices.
UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback.
Co-authored-by: thebestnom <shoval.arad@gmail.com>
2022-03-28 07:54:10 -07:00
ztco224
658877c350
Fix DST Error on Windows
...
(cherry picked from commit 4802f15231
)
2022-03-17 15:49:58 +01:00
Fredia Huya-Kouadio
b8178a7f0a
Setup logic to publish the Godot Android library to MavenCentral
...
(cherry picked from commit a2bf47de2b
)
2022-03-17 14:45:19 +01:00
Rémi Verschelde
6c2bd12031
Revert "Fix detected leaks/heap-use-after-free by AddressSanitizer at startup"
...
This reverts commit 3f94ea6271
.
It broke `detect_prime`'s main purpose which is to detect GPUs and use
the best one available.
2022-03-15 09:34:57 +01:00
ConteZero
2ff0735329
Added primary clipboard for Linux
2022-03-14 15:28:36 +01:00
Rémi Verschelde
3f08b72361
Merge pull request #56036 from Rubonnek/fix-startup-leaks-and-use-after-free
2022-03-13 18:09:55 +01:00
Hugo Locurcio
cec7c908ca
Add get_screen_refresh_rate()
to OS
...
This method can be used to get the refresh rate of a given screen.
It is supported on Windows, macOS, Linux, Android and iOS (but not
HTML5).
2022-03-10 22:10:48 +01:00
Rémi Verschelde
8975470bc2
Merge pull request #58336 from maiself/fix-directory-delete-linux-3.x
2022-03-10 21:29:55 +01:00
bruvzg
fa56990170
[macOS and iOS export] Add localized application name to the translation .plist files.
...
(cherry picked from commit 5fdea69276
)
2022-03-10 17:18:40 +01:00
Rémi Verschelde
a73bd2dec4
Revert "[HTML5] Fetch API now passes credentials."
...
(cherry picked from commit 63df46c238
)
2022-03-09 09:53:26 +01:00
Rémi Verschelde
85b4848ca8
Merge pull request #54188 from Rubonnek/increase_var_arg_max_3x
2022-03-08 13:10:48 +01:00
Wilson E. Alvarez
424dbf70af
Increase VARIANT_ARG_MAX to 8
2022-03-07 10:03:49 -05:00
Haoyu Qiu
9d6f4a76d1
Fix X11 memory leak after drag & drop file into the editor
2022-03-04 17:50:28 +08:00
Sergey Minakov
e3cd47f6cc
[iOS] Fix multitouch not working correctly
...
(cherry picked from commit 15ef056997
)
2022-03-02 11:00:26 +01:00
Haoyu Qiu
1348f868c9
Make string inside TTR() single-line
2022-02-28 20:09:34 +08:00
Mai Lavelle
2c00b90613
Fix deleting of directories on Linux
...
Trailing slash of directories was mishandled, and incorrect derived paths
were formed. Stripping the slash fixes this.
2022-02-20 08:43:44 -05:00
Sergey Minakov
4282076ab5
[iOS] Fix incorrect method name for input dragging event
...
(cherry picked from commit 8b3ac9479e
)
2022-02-19 15:40:01 +01:00
Rémi Verschelde
47e34dc4e2
Merge pull request #58157 from Calinou/os-add-get-processor-name-3.x
2022-02-17 12:34:16 +01:00
Hugo Locurcio
7f9e974a8b
Add an OS.get_processor_name()
method
...
This method can be used to get the CPU model name.
It can be used in conjunction with
`VisualServer.get_video_adapter_name()` and
`VisualServer.get_video_adapter_vendor()` for annotating benchmarks
and automatic graphics quality configuration.
2022-02-16 18:39:02 +01:00
Rémi Verschelde
9f09251027
i18n: Sync editor translations with Weblate
...
Minor proofreading of new OSX export strings.
2022-02-16 09:55:45 +01:00
Fabio Alessandrelli
8988a9bcec
[HTML5] Fetch API now passes credentials.
...
Used default value before, i.e. "same-origin", now uses "include" (i.e.
include for cross-origin if cross-origin is allowed).
(cherry picked from commit ffe248cbdf
)
2022-02-11 09:50:59 +01:00
Rémi Verschelde
7a16bb2ee4
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
(cherry picked from commit 1bdb82c64e
)
2022-02-11 09:50:59 +01:00
NeilKleistGao
ef0ec3fcfd
Add warning for Windows export when rcedit is not configured
2022-02-11 09:50:57 +01:00
bruvzg
6bcb24f1b8
Add empty translation files to the exported app bundle, to allow translation detection by the OS.
...
(cherry picked from commit 2eeff4caec
)
2022-02-11 09:50:56 +01:00
Rémi Verschelde
f50c7f7415
Core: Move generated VERSION_HASH
to a .cpp
file
...
This lets us have its definition in `core/version.h` and avoid
rebuilding a handful of files every time the commit hash changes.
(cherry picked from commit 90162851a7
)
2022-02-10 13:06:56 +01:00
Rémi Verschelde
f72753ca0c
Merge pull request #57604 from naithar/fix/godot-view-touch-3.x
2022-02-09 11:05:51 +01:00
Fabio Alessandrelli
4c23a902c1
[HTML5] Implement JavaScript PWA update callbacks.
...
Allows detecting when a new version of the progressive web app service
worker is waiting (i.e. an update is pending), along a function to force
the update and reload all clients.
2022-02-06 18:33:13 +01:00
Fabio Alessandrelli
73f396572a
[HTML5] PWA service worker prefers cached version.
...
Use an offline first approach, where we prefer the cached version over
the network one.
This forces games using PWA to always re-export the project and not just
the PCK, so that the service worker version gets updated correctly, and
the end-user cache is correctly cleared on update.
2022-02-06 18:33:13 +01:00
Fabio Alessandrelli
4a52016aa9
Revert "[HTML5] Better engine config parsing."
...
This reverts commit 2f509f1b12
.
Breaks closure compiler builds.
And adds a warning for future readers.
(cherry picked from commit 6d3d17651a
)
2022-02-04 00:16:15 +01:00
Sergey Minakov
aba5f6d9be
[iOS] Fix touch handling for overlay views
...
Workaround for GodotView touches being called from UIWindow on different UIView input
2022-02-03 23:53:31 +03:00
Rémi Verschelde
94dd9c26dd
Server: Fix skip libstdc++ static linking on macOS
...
Fixes #48161 .
2022-02-03 17:54:59 +01:00
bruvzg
f44b7c3188
Fix iOS export with manually specified signing/provisioning data.
...
(cherry picked from commit 57db989a97
)
2022-02-03 11:30:17 +01:00
Rémi Verschelde
fdbcd002f6
Merge pull request #57512 from bruvzg/console_build
2022-02-02 23:06:36 +01:00
Rémi Verschelde
58edf04240
Windows: Fix GCC -fpermissive error with 'pck' section workaround
...
Follow-up to #57450 .
(cherry picked from commit 5a1f42b322
)
2022-02-01 12:20:19 +01:00
bruvzg
3095dcef19
[3.x] Backport Windows subsystem build option.
2022-02-01 13:03:15 +02:00
bruvzg
ba2e891ec8
[Windows] Disable console I/O redirection, if it's already redirected to the pipe or file.
...
(cherry picked from commit 99a1e552ac
)
2022-01-31 22:54:24 +01:00
Fabio Alessandrelli
82c83a0636
[HTML5] Fix gamepad samples not being properly reset.
...
(cherry picked from commit 93968e1451
)
2022-01-31 22:54:24 +01:00