summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #80240 from bruvzg/x11_ext_checksRémi Verschelde2023-08-072-25/+22
|\ | | | | | | [X11] Do not fail DisplayServer init if non-essential extensions are missing.
| * [X11] Do not fail DisplayServer init if non-essential extensions are missing.bruvzg2023-08-042-25/+22
| |
* | Fix native popups auto-closing when interacting with non-client area.bruvzg2023-08-071-1/+1
|/
* Merge pull request #78539 from EIREXE/input-infoYuri Sizov2023-08-031-1/+24
|\ | | | | | | Add the ability to get per-platform information for joypads
| * Add the ability to get per-platform information for joypads.Álex Román Núñez2023-08-021-1/+24
| | | | | | | | | | | | 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.
* | Fix crash on Windows when closing `Window`Markus Sauermann2023-08-021-0/+6
|/ | | | | | | Send `WINDOW_EVENT_MOUSE_EXIT` when a window is destroyed. Ensure, that on Windows, the event_callback is still valid during destroying the `Window`.
* Extract and reorganize texture resource classesHendrik Brucker2023-07-142-2/+2
|
* Merge pull request #79062 from MewPurPur/svg-optimizationsYuri Sizov2023-07-121-1/+1
|\ | | | | | | Optimize SVG icons and remove unused Transpose icon
| * Optimize SVG icons and remove unused Transpose iconMewPurPur2023-07-071-1/+1
| |
* | Merge pull request #77993 from bruvzg/key_lbl_from_pYuri Sizov2023-07-122-0/+25
|\ \ | | | | | | | | | Implement DisplayServer.keyboard_get_label_from_physical method.
| * | Implement keyboard_get_label_from_physical method.bruvzg2023-06-082-0/+25
| | |
* | | Merge pull request #76045 from Eoin-ONeill-Yokai/steaminput-fixYuri Sizov2023-07-121-4/+10
|\ \ \ | | | | | | | | | | | | Prevent double input events on gamepad when running through steam input
| * | | Prevent double input events on gamepad when running through steam inputEoin O'Neill2023-07-101-4/+10
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #73443 from akien-mga/unbundle-openxrYuri Sizov2023-07-121-0/+3
|\ \ \ | | | | | | | | | | | | Allow unbundling OpenXR (for Linux distros)
| * | | Allow unbundling OpenXR (for Linux distros)Rémi Verschelde2023-06-161-0/+3
| | | | | | | | | | | | | | | | | | | | Copy XrMatrix4x4f_CreateProjectionFov to our OpenXRUtil, instead of relying on a private header.
* | | | Merge pull request #78437 from bruvzg/set_iconYuri Sizov2023-07-121-0/+2
|\ \ \ \ | | | | | | | | | | | | | | | Add error checks and harmonize behavior of the `set_icon` method.
| * | | | Add error checks and harmonize behavior of the set_icon method.bruvzg2023-07-031-0/+2
| | |/ / | |/| |
* | | | Merge pull request #78248 from felaugmar/load-svg-adjustable-scaleYuri Sizov2023-07-121-3/+2
|\ \ \ \ | | | | | | | | | | | | | | | Added `Image::load_svg_from_(buffer|string)`
| * | | | Added Image's `load_svg_from_(buffer|string)`Felipe Augusto Marques2023-06-231-3/+2
| |/ / / | | | | | | | | | | | | No core dependency to the svg module.
* | | | Merge pull request #79284 from akien-mga/fix-linux-os-move_to_trashRémi Verschelde2023-07-111-23/+11
|\ \ \ \ | | | | | | | | | | | | | | | Fix Linux `move_to_trash` wrongly reporting files as not found
| * | | | Fix Linux `move_to_trash` wrongly reporting files as not foundRémi Verschelde2023-07-111-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Linux: Fix build with `use_sowrap=no` and various warnings/errorsRémi Verschelde2023-07-102-10/+16
|/ / / /
* | | | Merge pull request #79105 from akien-mga/linux-libsquish-lacks-pkgconfigRémi Verschelde2023-07-081-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | Linux: Link libsquish directly when unbundling, .pc file unreliable
| * | | | Linux: Link libsquish directly when unbundling, .pc file unreliableRémi Verschelde2023-07-061-1/+2
| | | | |
* | | | | Merge pull request #79101 from akien-mga/linux-unbundle-brotliRémi Verschelde2023-07-071-0/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Linux: Allow unbundling brotli to use system library
| * | | | | Linux: Allow unbundling brotli to use system libraryRémi Verschelde2023-07-061-0/+3
| |/ / / /
* / / / / Doctool: Remove version attribute from XML headerRémi Verschelde2023-07-061-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | 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).
* / / / Bump version to 4.2-devRémi Verschelde2023-07-051-1/+1
|/ / / | | | | | | | | | Keep on waitin'
* | | SCons: Move platform logo/run icon to `export` folderRémi Verschelde2023-06-204-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #74511 from AThousandShips/win_cursor_fixRémi Verschelde2023-06-201-2/+2
|\ \ \ | | | | | | | | | | | | Fix clearing custom cursor
| * | | Fix clearing custom cursorNinni Pipping2023-03-101-2/+2
| | | |
* | | | Merge pull request #67158 from amoriqbal/fix_error_messageRémi Verschelde2023-06-191-13/+22
|\ \ \ \ | |_|/ / |/| | | | | | | Fix the conditions for firing 'No such file or directory' error on Linux `move_to_trash`
| * | | Changed the conditions for firing 'No such file or directory' errorAmor Iqbal2022-10-101-13/+22
| | | |
* | | | [DisplayServer] Add method to check if native window is focused.bruvzg2023-06-162-0/+10
| | | |
* | | | Fix `bsd` feature tag includes only "other BSDs"Danil Alexeev2023-06-151-1/+9
| | | |
* | | | Fix docs after renaming export optionRedworkDE2023-06-121-2/+2
| | | |
* | | | Merge pull request #75984 from KoBeWi/ConsoleMcWrapRémi Verschelde2023-06-121-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | Rename console script to wrapper
| * | | | Rename console script to wrapperkobewi2023-04-121-3/+3
| | | | |
* | | | | Style: Harmonize header includes in platform portsRémi Verschelde2023-06-0814-63/+61
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | X11: Fix vformat ambiguous int types for GCC 10 (again)Rémi Verschelde2023-06-071-1/+1
| | | |
* | | | Replace get_rendering_device() call to prevent crashes on OpenGL.MJacred2023-06-061-3/+3
| | | | | | | | | | | | | | | | And make OpenGL video adapter info align with Vulkan.
* | | | Merge pull request #75099 from mxnemu/add-default-x11-error-handlerRémi Verschelde2023-06-051-1/+20
|\ \ \ \ | | | | | | | | | | | | | | | [Linux/X11] Add a default error handler for X11 to avoid crashes.
| * | | | [Linux/X11] Add a default error handler for X11 to avoid crashes.nee2023-06-051-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | [Linux/TTS] Cache TTS voice list.bruvzg2023-06-022-24/+41
| | | | |
* | | | | Merge pull request #65902 from MJacred/editor/copysysteminfoYuri Sizov2023-05-271-21/+26
|\ \ \ \ \ | | | | | | | | | | | | Add an editor option to copy system info to clipboard
| * | | | | Copy system info to clipboard + Update bug_report.ymlMJacred2023-05-271-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Build `JoypadLinux` sandbox detection method only with udevRiteo2023-05-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes an `unused-function` warning when building with `udev=no`.
* | | | | | X11: Fix vformat ambiguous int types for GCC 10Rémi Verschelde2023-05-231-1/+1
|/ / / / / | | | | | | | | | | | | | | | The build would fail with GCC 10 from our Linux SDK used for official builds.
* | | | | Add `audio/general/text_to_speech` project setting to enable/disable TTS.bruvzg2023-05-181-9/+14
| | | | |
* | | | | Merge pull request #75142 from bruvzg/scrRémi Verschelde2023-05-162-0/+100
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | [DisplayServer] Implement screen_get_image method for LinuxBSD/X11, macOS and Windows.