summaryrefslogtreecommitdiffstats
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* Fix gamepad triggers not working on web exportsLisandro Lorea2024-09-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #81758 DisplayServerWeb::process_joypads handles buttons 6 and 7 of the HTML5 Standard Gamepad as a special case by doing: `input->joy_axis(idx, (JoyAxis)b, s_btns[b]);` This doesn't work because there is no JoyAxis 6 or 7 in the enum To fix this we use JoyAxis::TRIGGER_LEFT and TRIGGER_RIGHT for button 6 and 7 However since we are now lying to input->joy_axis we also need to lie in the mappings for the standard gamepad in godotcontrollersdb.txt, otherwise input->joy_axis will try to find a mapping to axis 4(LT) and axis 5(RT) that's not defined. Therefore we set lefttrigger to +a4 and righttrigger to +a5 in the mapping, to match what we are actually sending. A cleaner, and more involved fix to this would be modifying input->joy_button so that it can handle analog buttons and map them to axes preserving their value instead of converting to boolean (cherry picked from commit 9dd372f3164f3daf01c02d1f4ba304ffde47f394)
* [Windows] Fix broken apksigner detection.bruvzg2024-09-171-0/+5
| | | | (cherry picked from commit 2c991a727b1ff94fa5adca3a5a196ffa1162f98d)
* [Windows] Use the same API for all `OS_Windows::*_environment` functions.bruvzg2024-09-171-10/+1
| | | | (cherry picked from commit 319bfa9965daae7d9e9ba5f6553afa701aad8f46)
* GDExtension: Show warning on missing PDB file, rather than errorDavid Snopek2024-09-171-1/+5
| | | | (cherry picked from commit 760099ca6fcebd92b6c6c9bd09ba3bbb643666be)
* Only main binaries require entitlements. This fixes signing issues on macOS.Leonardo Demartino2024-09-171-4/+4
| | | | (cherry picked from commit 0a57dd4682985d1be4b831c100c03121233535a7)
* Windows: Call `AddDllDirectory()` with an absolute pathDavid Snopek2024-09-161-1/+2
| | | | (cherry picked from commit e8bd385f534cf02696100d90a2c4ed636353cddc)
* [Windows] Hide cursor before moving.bruvzg2024-09-161-8/+11
| | | | (cherry picked from commit 9a2977fef170115f600fc4e36734ae7af00cbe77)
* Use wayland-egl-core.h instead of wayland-egl.hJoel Winarske2024-09-161-1/+1
| | | | | | | | | -avoid use of transitive wayland include -resolves https://github.com/godotengine/godot/issues/95830 Signed-off-by: Joel Winarske <joel.winarske@gmail.com> (cherry picked from commit 6ce71f0fb0a091cffb6adb4af8ab3f716ad8930b)
* Honor `pitch_scale` value before playing audio sampleAdam Scott2024-09-163-4/+9
| | | | (cherry picked from commit aaafd163b29180090161c0169c70ab2772dfdcd7)
* Fix drag&drop between window on WindowsHilderin2024-09-162-1/+11
| | | | (cherry picked from commit 0987a9dc0690c272534d2e550296b233a7e53eb3)
* Fix reload of GDExtension libraries in framework package on macosJoel Croteau2024-09-161-15/+15
| | | | | | | | | | | | | | | | | | | | | | | `GDExtension::open_library` has a check in it to see if the library was loaded from a temp file, and if it was to restore the original name as that is the one we actually care about. This check is breaking extension reloading on Mac when the library path is to a framework folder, as the file inside the framework will not generally be the same name as the folder. This check also shouldn't be necessary even on Windows, which is the only platform that uses `generate_temp_files`, since disposal of the created temp file is handled within `OS_Windows::open_dynamic_library`, and `GDExtension::open_library` (which is the only function to call `open_dynamic_library` with a `p_data` argument) only cares about the original library file path and has to do extra work to remove the name of the temp file. Instead, I have removed that check and set `OS_Windows::open_dynamic_library` to return the name of the original file and not the name of the copy. This fixes GDExtension reloading on macOS. I do not have a Windows machine available to test that it still works properly on Windows, so someone should check that before merging this. (cherry picked from commit f44d6a235f198e3f8c5189161840315f43cfdd2e)
* Update the Android `fileLastModified` method to return values in seconds ↵Fredia Huya-Kouadio2024-09-162-2/+2
| | | | | | instead of milliseconds (cherry picked from commit cde873b4064360da01a9ffd92956e7d89e2c3eae)
* Fix AudioStreamPlayer get_playback_position() for web buildYahkub-R2024-09-168-3/+170
| | | | (cherry picked from commit bcd776e44174677f1995a49b697f9651f1f692ec)
* DisplayServerWindows: Fix logic when creating with transient parentAlvin Wong2024-08-151-7/+9
|
* Merge pull request #95425 from bruvzg/macos_joypad_queueRémi Verschelde2024-08-121-3/+2
|\ | | | | | | [macOS] Fix wrong object type in joypad queue.
| * [macOS] Fix wrong object type in joypad queue.bruvzg2024-08-121-3/+2
| |
* | Merge pull request #95331 from Riteo/seat-tight-this-is-weirdRémi Verschelde2024-08-121-17/+21
|\ \ | |/ |/| | | Wayland: Avoid recreating input objects on capability change
| * Wayland: Avoid recreating input objects on capability changeRiteo2024-08-091-17/+21
| | | | | | | | | | | | Before, multiple capability events would instantiate the same object over and over as long as its bit was set. This caused issues with hotplug and device suspension.
* | Merge pull request #95323 from bruvzg/ios_dylRémi Verschelde2024-08-091-1/+1
|\ \ | |/ |/| [iOS] Fix dylib GDExtension convertion.
| * [iOS] Fix dylib GDExtension convertion.bruvzg2024-08-091-1/+1
| |
* | [macOS] Remove kill override.bruvzg2024-08-082-13/+0
|/
* [macOS] Load OpenGL.framework by path to avoid issues with non-Latin ↵bruvzg2024-08-072-7/+14
| | | | executable names.
* Merge pull request #95191 from bruvzg/macos_termRémi Verschelde2024-08-061-2/+5
|\ | | | | | | [macOS] Attempt to terminate process normally before using `forceTerminate`.
| * [macOS] Attempt to terminate process normally before using `forceTerminate`.bruvzg2024-08-061-2/+5
| |
* | Merge pull request #95189 from bruvzg/fix_mono_bundleRémi Verschelde2024-08-061-5/+7
|\ \ | | | | | | | | | [macOS] Fix `generate_bundle` build flag for .NET builds.
| * | [macOS] Fix `generate_bundle` build flag for .NET builds.bruvzg2024-08-061-5/+7
| |/
* | Merge pull request #95155 from bruvzg/win_pen_checksRémi Verschelde2024-08-061-0/+10
|\ \ | | | | | | | | | [Windows] Reject `WM_POINTER(UP/DOWN)` messages for non pen pointer type.
| * | [Windows] Reject WM_POINTER(UP/DOWN) messages for non pen pointer type.bruvzg2024-08-041-0/+10
| |/
* | Merge pull request #95046 from timothyqiu/typosRémi Verschelde2024-08-062-6/+6
|\ \ | | | | | | | | | Fix several typos in the documentation
| * | Fix several typos in the documentationHaoyu Qiu2024-08-022-6/+6
| |/
* | Merge pull request #95009 from bruvzg/win_transp_checksRémi Verschelde2024-08-061-26/+29
|\ \ | | | | | | | | | [Windows] Check if transparency is enabled in the project setting before applying DWM blur.
| * | [Windows] Check if transparency is enabled in the project setting before ↵bruvzg2024-08-011-26/+29
| |/ | | | | | | applying DWM blur.
* / [X11] Use motion event button state instead of async state.bruvzg2024-08-011-2/+19
|/
* [macOS] Fix `is_process_running` and `kill` for bundled apps.bruvzg2024-07-312-0/+20
|
* Merge pull request #94976 from bruvzg/win_app_nameRémi Verschelde2024-07-311-2/+13
|\ | | | | | | [Windows] Improve editor grouping, set friendly name registry key for exported projects.
| * [Windows] Improve editor grouping, set friendly name registry key for ↵bruvzg2024-07-311-2/+13
| | | | | | | | exported projects.
* | Merge pull request #94958 from adamscott/fix-missing-web-nullcheck-sourceRémi Verschelde2024-07-311-1/+3
|\ \ | | | | | | | | | Add missing null check before disconnecting source
| * | Add missing null check before disconnecting sourceAdam Scott2024-07-301-1/+3
| |/
* | Merge pull request #94428 from alvinhochun/windows-angle-resize-syncRémi Verschelde2024-07-314-4/+11
|\ \ | | | | | | | | | Windows: Update ANGLE surface size when window is resized
| * | Windows: Update ANGLE surface size when window is resizedAlvin Wong2024-07-162-1/+6
| | | | | | | | | | | | | | | | | | | | | ANGLE needs to be told to resize the DXGI swap chain using `eglWaitNative`. Otherwise the resize will only happen in `eglSwapBuffers`, which causes some janky stretching during window resize.
| * | Windows: Do not attempt to resize surface before it is createdAlvin Wong2024-07-162-3/+5
| | | | | | | | | | | | | | | | | | `WM_WINDOWPOSCHANGED` may be received before `CreateWindowExW` has even returned, when the window's rendering context or OpenGL context hasn't been created yet.
* | | Android: Ensure cleanup of all subobjects in the OpenSL audio driverPierce Brooks2024-07-302-11/+42
| |/ |/|
* | Merge pull request #94943 from bruvzg/arm64_gl_switchRémi Verschelde2024-07-301-7/+27
|\ \ | | | | | | | | | [Windows] Improve OpenGL/ANGLE switching on ARM64.
| * | [Windows] Improve OpenGL/ANGLE switching on ARM64.bruvzg2024-07-301-7/+27
| | |
* | | Merge pull request #94923 from m4gr3d/fix_crash_on_android_terminateRémi Verschelde2024-07-301-0/+4
|\ \ \ | | | | | | | | | | | | Fix crash that occurs on termination of the Godot engine on Android
| * | | Fix the crash that occurs on termination of the Godot engine on AndroidFredia Huya-Kouadio2024-07-291-0/+4
| |/ /
* | | Merge pull request #94887 from m4gr3d/fix_generate_apk_for_dev_buildRémi Verschelde2024-07-301-19/+12
|\ \ \ | | | | | | | | | | | | Automatically enable `doNotStrip` for dev builds
| * | | Fix the `generate_apk` logic when `dev_build` or `debug_symbols` are enabledFredia Huya-Kouadio2024-07-291-19/+12
| |/ / | | | | | | | | | Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* / / [Web] Gracefully handle non-finite audio volumesA Thousand Ships2024-07-291-1/+4
|/ /
* | Merge pull request #94796 from kus04e4ek/backfallRémi Verschelde2024-07-291-4/+31
|\ \ | | | | | | | | | Windows: Fall back to D3D12 if Vulkan is not supported and vice versa