Commit Graph

318 Commits

Author SHA1 Message Date
Rémi Verschelde
b44ee23cee 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.

(cherry picked from commit 0a10f09ce4321695940a626eef9c64b36f599193)
2024-02-08 15:05:20 +01:00
floatingpointer
808103890a Add XInput device ID for wireless Series 2 Elite controller
(cherry picked from commit 81f9c0345c963ab1f06c2ed1d2d76368bdbd8f56)
2024-02-08 15:05:04 +01:00
nikitalita
cda33386ca SCons: Add stack_size and default_pthread_stack_size options to Web target
(cherry picked from commit 6788bc6bc2be68db9b9f1a37bf5edb8497eafb93)
2024-02-08 15:04:41 +01:00
Adam Scott
89ebe3f570 Set what were default values for some emscripten linkflags
- Set `-sSTACK_SIZE` to what it was before emscripten 3.1.27.
  It was renamed in 3.1.25 so also set `-sTOTAL_SIZE` for older
  versions for consistency.
- Set `-sDEFAULT_PTHREAD_STACK_SIZE` to what it was before 3.1.30.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 8e5fbd43488ad39a9b987c9abc38134841f44024)
2024-02-08 15:02:18 +01:00
Rémi Verschelde
d111a460b3 Linux: Add support for arm64 and arm32 export templates
This is done in a hacky way, mostly to keep it simple and avoid having
to do a refactoring of the `EditorExportPlatform` interface.

Only Windows and Linux use `EditorExportPlatformPC`, and thus to
handle the new architectures for Linux, we simply do a few checks here
and there with a couple new methods to register the export template
names for Linux arm64 and arm32.

For Godot 4.0, we did refactor everything to allow exporting binaries
for different architectures cleanly. For 3.6, which is likely the last
feature release for the 3.x branch, I tend to cut corners as these
improvements will be shorter lived and thus new tech debt isn't as big
a concern.
2024-02-08 15:01:00 +01:00
Zach Coleman
92a8e047e0 Add APP_PAUSED and APP_RESUMED MainLoop notifications 2024-02-08 14:49:18 +01:00
bruvzg
bf8d0672f6 Update linker flags for Xcode 15.0 - 15.2. Bump min. iOS version to 12. 2024-02-08 14:30:10 +01:00
Rémi Verschelde
c27a3cf9bc UWP: Fix VS 2017 build with new get_unique_id method
Fixes this error:
```
platform\uwp\os_uwp.cpp(715): error C3149: 'Windows::Storage::Streams::IBuffer': cannot use this type here without a top-level '^'
```
2024-02-08 14:19:32 +01:00
Cody Roberts
eb8ca6d2ed Add project settings for AVAudioSessionCategory on iOS
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2024-02-08 14:06:59 +01:00
DylanCheetah
d04de8ef62 Implement UWP version of OS.get_unique_id function. 2024-02-08 13:59:32 +01:00
f927e2db73 Ran the clang format script. 2023-12-25 20:27:28 +01:00
e44c46d7a9 Fixed include paths, compile errors and some code style. 2023-12-25 20:00:07 +01:00
Fredia Huya-Kouadio
6713693291 Add Android project settings for gesture support
- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
2023-12-20 23:08:39 +01:00
Fredia Huya-Kouadio
312a907ce7 Update the launchMode for the GodotApp activity to allow other activities to be part of the same task
For details, see https://developer.android.com/guide/topics/manifest/activity-element#lmode
2023-12-20 22:53:17 +01:00
Fredia Huya-Kouadio
8452eb6c97 Fix Android editor crash issue
Fix issue causing the Android editor to crash when pressing back from a running project
2023-12-20 22:52:19 +01:00
Fredia Huya-Kouadio
7000a13bda Automatically pick the Android sdk path using environment variables 2023-12-20 22:50:59 +01:00
bruvzg
dddc914981 Use occlusionState to determine when window is drawable. 2023-12-20 22:34:45 +01:00
TurboHz
5b05e02fde Return exit code 0 when running --version or --help
Fixes https://github.com/godotengine/godot/issues/83661
2023-12-20 22:33:58 +01:00
Zach Coleman
e7611e5eab Make OSIPhone::get_screen_refresh_rate respect iOS Low Power Mode 2023-12-20 22:29:10 +01:00
Rémi Verschelde
651857c040 Web: Fix version check for missing scalbnf LTO workaround
The check needs to happen after we set `env["CXX"]`.
Follow-up to #81340.

(cherry picked from commit 50161808c240b2296045887e1fc683eee87905ae)
2023-12-20 22:16:55 +01:00
Rémi Verschelde
51d50bff9b Web: Workaround Emscripten 3.1.42+ LTO regression
Fixes #80010.

(cherry picked from commit b064008c07be856d6f3a5079d11746137e03ede5)
2023-12-20 22:09:10 +01:00
ocean (they/them)
6f4467b13a Build system: add option for MSVC incremental linking.
(cherry picked from commit bbafe14970cf2a101b8b04dbfafeeaa9ddfb5d4d)
2023-12-20 22:03:39 +01:00
98912a89e8 File copyright header updates pt9. 2023-12-18 00:25:33 +01:00
88e9ad04f2 Moved back the servers and resources from core. 2023-12-10 23:11:07 +01:00
238bf1b331 Moved the RenderingServer to core. 2023-12-10 19:04:24 +01:00
83799f5cf5 Fix includes and build. 2023-10-02 18:30:49 +02:00
f25a340e43 Added back the uwp platform. It likely won't work for a while. 2023-10-02 18:20:17 +02:00
9022a74db3 Ported from godot: 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.
- m4gr3d
620fdd1f07
2023-10-02 17:10:27 +02:00
bruvzg
fa582212c4 Workaround Xcode 15 linker bug. 2023-10-02 16:54:52 +02:00
bruvzg
51d6403385 Change target version to 11.0+ to fix PCRE SLJIT build. 2023-10-02 16:54:20 +02:00
bruvzg
0dce2349c0 Disable live resize in multithreaded rendering mode. 2023-10-02 16:42:54 +02:00
SysError99
d7575edb2d Fix JavaScript callback memory leak 2023-10-02 16:18:41 +02:00
2199cba049 Fix compile error. 2023-09-10 15:12:26 +02:00
84ccfb340a Fix compile errors. 2023-09-10 15:03:32 +02:00
c380bd6587 More include juggling. 2023-09-10 14:59:32 +02:00
ca326971a4 More missing includes. 2023-09-10 14:53:45 +02:00
33c1b9c50f Added all os windows the includes temporarily to the sub process class. 2023-09-10 14:45:12 +02:00
3214cac8a6 Try to fix windows includes. 2023-09-10 14:37:48 +02:00
5e4b583b32 Added sub_process_windows.cpp to the build. 2023-09-10 14:18:18 +02:00
96470d4743 Fix template deduction. 2023-09-10 14:06:00 +02:00
25533eed23 Implemented SubProcessWindows. It will likely have issues / not compile. 2023-09-10 13:30:56 +02:00
3cfe43b5e8 Updated an another missing OS.run() call. 2023-09-10 10:26:05 +02:00
1877ecd379 Fix warning. 2023-09-10 09:59:50 +02:00
15f092866b Fix JNI method names and java class lookup names in the android backend. 2023-08-31 21:59:44 +02:00
Rémi Verschelde
83738e314c SCons: Disable misbehaving MSVC incremental linking
Fixes #77968.

(cherry picked from commit bc1aef88eef7bb09d1c537bf150414c50abfa374)
2023-08-30 11:16:00 +02:00
Riteo
913c3164b5 Build JoypadLinux sandbox detection method only with udev
Fixes an `unused-function` warning when building with `udev=no`.

(cherry picked from commit 51dfdfab967234f0fa9939bd7158cc96a9ec3547)
2023-08-30 11:13:10 +02:00
Hiroki Taira
39bb646127 Add support for DPAD Center key of Android TV remote controller
(cherry picked from commit 9dc84e35816fbb41cfabb1b6e11536edd7263c67)
2023-08-30 11:12:51 +02:00
Dominik
a672409537 Added a few additional GUIDs to list of hardcoded IDs in is_xinput_device
(cherry picked from commit 19ce63d87501b703b4c878fc9a48b36ac51975cd)
2023-08-30 11:03:23 +02:00
Omar Shehata
eea5d96503 Fix double tap & drag on Android
(cherry picked from commit 0c94750642978df5b5a100692c7b8be8522fd668)
2023-08-30 10:58:05 +02:00
Roman Vasilyev
ec37f9c811 ios splash screen rotation fix
(cherry picked from commit 8fcca194a16279ac5c22f702e544733056801b2a)
2023-08-30 10:56:42 +02:00