summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2021-11-30Don't return reference on copy assignment operatorsRémi Verschelde
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
2021-11-30[HTML5] Fix multi-touch input handling.Fabio Alessandrelli
The code to populate the input data for WebAssembly was incorrectly overriding values when multiple touches were present due to wrong indexing.
2021-11-26Merge pull request #55347 from Faless/js/4.x_scons_emcc_abspathRémi Verschelde
2021-11-26[HTML5] Use absolute path for JS lib/pre/externs.Fabio Alessandrelli
Ensure better compatibility when emcc which may run some tools from different paths (e.g. closure compiler). This fixes externs include issues with modern emcc using the closure compiler.
2021-11-26Merge pull request #55344 from Chaosus/repair_error_funcYuri Roubinsky
2021-11-26Fix console colors on WindowsYuri Roubinsky
2021-11-26[HTML5] Fix focus (again) in Firefox's iframes.Fabio Alessandrelli
This actually makes sense(?), when running inside an iframe the active element might be our canvas, while the iframe itself is not active in the parent window. Since we consume the event, the iframe does not get focused in Firefox (but does in Chromium-based browsers), so we must always call focus to handle such occasions.
2021-11-25Restore console window output for editor app on WindowsYuri Roubinsky
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-22Merge pull request #55159 from m4gr3d/add_oculus_openxr_config_masterRémi Verschelde
2021-11-21Fix Android `get_screen_orientation()` not returning valid valuesMarcel Admiraal
2021-11-20Add support for OpenXR export configurations.Fredia Huya-Kouadio
2021-11-19[HTML5] Add WebGL2 (GLES3) support using the OpenGL renderer.Fabio Alessandrelli
Note, the editor build requires the mbedtls module to be manually enabled, as it is currently needed as a ResourceUID dependency. This will need to be addressed in a separate PR.
2021-11-19Merge pull request #54499 from Faless/threads/4.x_work_pool_defaultRémi Verschelde
2021-11-19[HTML5] Add checks to Gamepad API events.Fabio Alessandrelli
In some conditions the events might be generated even when the `gamepad` object is not accessible due to Security Context requirements. This commit adds a check to avoid firing the handler in those cases.
2021-11-19[HTML5] Fix input not focusing canvas.Fabio Alessandrelli
mousedown and touchstart should focus the canvas to ensure correct application lifecycle.
2021-11-18Merge pull request #55072 from KoBeWi/untitled_goose_projectRémi Verschelde
2021-11-18Fix data directory of unnamed projectskobewi
2021-11-18Windows: Use `/bigobj` only for debug builds, breaks GCC LTORémi Verschelde
Building `target=release` and `target=release_debug` builds with MinGW-GCC errors when linking with LTO. Since it's only needed for `target=debug` builds anyway (bigger objects), which we don't build with LTO, this works around the issue.
2021-11-17Fix crash on macOS (AS) when dualshock4 is removedWill Jordan
2021-11-16[macOS] Fix crash handler not printing function names on M1 Macs.bruvzg
2021-11-15Merge pull request #54992 from RandomShaper/drop_android_db_settingRémi Verschelde
2021-11-15Drop pointless Android depth buffer settingPedro J. Estébanez
2021-11-12Fix typo in architecture name for x86_64 macOSAaron Franke
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-12Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde
2021-11-11Merge pull request #54876 from bruvzg/no_captured_moveRémi Verschelde
2021-11-11Make window unmovable by dragging title bar, when mouse in captured or ↵bruvzg
confined mode.
2021-11-11String: Remove `erase` method, bindings can't mutate StringRémi Verschelde
2021-11-10Merge pull request #54837 from akien-mga/windows-bigobjRémi Verschelde
2021-11-10Windows: Enable `/bigobj` to increase max size for obj filesRémi Verschelde
Equivalent `-Wa,-mbig-obj` for GCC/Clang. This started being needed to compile harfbuzz in `target=debug` with MinGW/GCC, but there doesn't seem to be any drawback to enabling `/bigobj` (aside from losing support for pre-VS 2005 linkers, which we don't support).
2021-11-10Windows: Fix compilation warnings with GCC 11.2.1Rémi Verschelde
2021-11-09Merge pull request #54463 from RandomShaper/fix_gl3_32bitsRémi Verschelde
2021-11-09Merge pull request #54315 from nekomatata/x11-key-events-logRémi Verschelde
2021-11-08[macOS] Use pre-wait observer to keep main run loop running and redraw ↵bruvzg
window during the window resize and displaying modal popups.
2021-11-07[iOS export] Capture and display xcodebuild output.bruvzg
2021-11-06[Export] Read and ZIP project files in 16K chunks instead of reading the ↵bruvzg
whole file at once.
2021-11-05Merge pull request #54601 from nekomatata/x11-struts-fix-bad-window-errorRémi Verschelde
2021-11-04Fix BadWindow X11 errors when a window is closed while processing strutsPouleyKetchoupp
A window can be closed on the server side while processing results from _NET_CLIENT_LIST, which causes BadWindow fatal errors by default in XGetWindowProperty. The only way to safely catch this case is to set an error handler to ignore BadWindow errors while these commands are processed.
2021-11-04Merge pull request #54591 from WoLfulus/masterRémi Verschelde
2021-11-04Fix dwFlags on CreateProcessW callsWoLfulus
2021-11-03Add default `minSdkVersion` and `targetSdkVersion` in the ↵Fredia Huya-Kouadio
AndroidManifest.xml file
2021-11-02[macOS] Add support for OpenGLES3 video driver.bruvzg
2021-11-02[OS] Add ThreadWorkPool default size to OS.Fabio Alessandrelli
Some platforms (*cough* web *cough*) have hard limits on the number of threads that can be spawned. Currently, ThreadPoolWork (mostly used in rendering/physics servers) will spawn as many threads as CPUs available causing exception on machines with high CPU count. This commit adds a new overridable method to OS that returns the default thread pool size (still the CPU count by default), and overrides it for the JavaScript platform so it always allocate only one thread. We can likely improve the whole ThreadPoolWork in the future to always allocate X amount of threads, and assign jobs to them on the fly, but that will require some more architectural changes.
2021-11-01Merge pull request #54490 from q66/ppcRémi Verschelde
2021-11-01Add support for PowerPC familyDaniel Kolesa
2021-11-01Fix new projects always being created with OpenGLHugo Locurcio
Only Vulkan is fully implemented for now, so OpenGL isn't available in the project manager yet. This also makes the rendering driver checks use lowercase names everywhere for consistency.
2021-11-01Merge pull request #41565 from nekomatata/x11-usable-screen-sizeRémi Verschelde
2021-11-01Drop broken Android 32-bit framebuffer setting for a reliable one for depth ↵Pedro J. Estébanez
buffer
2021-11-01[macOS] Add `create_instance` function to spawn editor copies.bruvzg
[macOS] Modify `create_project` function to detect and run app bundles using NSWorkspace to ensure app window is registered and activated correctly.