summaryrefslogtreecommitdiff
path: root/platform/osx
AgeCommit message (Collapse)Author
2022-03-27Rename warp mouse functions to warp_mouseMarkus Sauermann
2022-03-24Fix PopupMenu behavior on MacOS when multiple monitors are usedC.Even
* DisplayServerOSX::mouse_get_position returns wrong x axis data in multi-monitor case, which makes mouse_process_popups send WINDOW_EVENT_CLOSE_REQUEST, then eventually make PopupMenu close on mouse down without activating item.
2022-03-22[macOS] Add missing global menu features.bruvzg
2022-03-18Merge pull request #58455 from bruvzg/export_scriptRémi Verschelde
2022-03-16Implement GDExtension export plugin.bruvzg
2022-03-14[Export] Add "export console script" option for Linux, macOS, and Windows ↵bruvzg
exports.
2022-03-11Merge pull request #58986 from akien-mga/diraccessrefRémi Verschelde
2022-03-11Merge pull request #58751 from bruvzg/loc_str_propsRémi Verschelde
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-03-08[X11] Do not try to focus unmapped window.bruvzg
2022-03-04Improve app name and system permission message localization.bruvzg
Add localizable string (Dictionary<Lang Code, String>) property editor and property hint. Add localized "app name" property to the project settings. Add localized permission and copyright properties to the macOS and iOS export settings. Remove some duplicated ("app name") and deprecated ("info") macOS and iOS export properties.
2022-03-04Merge pull request #58738 from bruvzg/mac_resize_crashRémi Verschelde
[macOS] Disable window redraw during resize, when rendering in the separate thread.
2022-03-04[macOS] Disable window redraw during resize, when rendering in the separate ↵bruvzg
thread.
2022-03-04[macOS and iOS export] Add localized application name to the translation ↵bruvzg
.plist files.
2022-02-25Improve popup window handling.bruvzg
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-16i18n: Sync editor translations with WeblateRémi Verschelde
Minor proofreading of new OSX export strings. (cherry picked from commit 9f09251027a485f14740dce7b753e962d26bff78)
2022-02-15Add an `OS.get_processor_name()` methodHugo Locurcio
This method can be used to get the CPU model name. It can be used in conjunction with `RenderingServer.get_video_adapter_name()` and `RenderingServer.get_video_adapter_vendor()` for annotating benchmarks and automatic graphics quality configuration.
2022-02-15Editor: Cleanup some includes dependenciesRémi Verschelde
Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
2022-02-14[OSX] Codesign exporter now uses CryptoCore RNG.Fabio Alessandrelli
2022-02-12[macOS] Fix macOS producing alert sound on some input actions.bruvzg
2022-02-12Merge pull request #56953 from bruvzg/ex_wndRémi Verschelde
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-12Add exclusive window handling to DisplayServer (on macOS and Windows).bruvzg
2022-02-10Fix typos with codespellRémi Verschelde
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.
2022-02-09Core: Move generated `VERSION_HASH` to a `.cpp` fileRémi Verschelde
This lets us have its definition in `core/version.h` and avoid rebuilding a handful of files every time the commit hash changes.
2022-02-08OSX: Pass `-mmacosx-version-min=11.0` instead of `11.00`Rémi Verschelde
Both are recognized by Xcode and equivalent, but osxcross issues a warning for the latter: ``` osxcross: warning: '-mmacosx-version-min=' (11.0.0 != 11.00) ```
2022-02-08[macOS] Fix NO_FOCUS macOS flag.bruvzg
2022-02-07Merge pull request #57305 from bruvzg/macos_cleanupRémi Verschelde
2022-02-04Merge pull request #57341 from bruvzg/win_multiwin_fsRémi Verschelde
2022-02-04Merge pull request #57617 from bruvzg/char_cleanupRémi Verschelde
2022-02-04Merge pull request #57335 from jordigcs/display-refresh-rateRémi Verschelde
2022-02-04[Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg
allow multi-window interface in full-screen. [Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
2022-02-04Cleanup and move char functions to the `char_utils.h` header.bruvzg
2022-02-03Add screen_get_refresh_rate to DisplayServerjordi
2022-02-03[macOS] Add empty translation files to the exported app bundle, to allow ↵bruvzg
translation detection by the OS.
2022-02-01[macOS] Cleanup and split Objective-C objects to the separate filesbruvzg
2022-02-01[macOS] Enable Objective-C ARCbruvzg
2022-02-01Fix captured mouse modeHendrik Brucker
2022-01-27Merge pull request #56785 from bruvzg/nat_handles_4Rémi Verschelde
2022-01-24Merge pull request #56754 from madmiraal/fix-45592Rémi Verschelde
2022-01-22[Export] Instead of removing unsupported options, hide it.bruvzg
2022-01-20Add nodiscard to core math classes to catch c++ errors.lawnjelly
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-19Merge pull request #56825 from bruvzg/macos_fix_fullscr_multiwindowRémi Verschelde
2022-01-18Window management improvements.bruvzg
[macOS] Fix transient windows not working in the full-screen mode. [macOS] Fix moving transient windows to the other screen than parent window. [macOS] Fix popup menu switch on hover. [macOS] Use content origin rect for windows position (to ensure `DS.mouse_get_position` is equal to `DS.window_get_position` + mouse position from the input events). [macOS] Fix incorrect input coordinates, when external display with different scaling in connected/disconnected. [macOS/Windows] Fix moving fullscreen windows between the screens. Add auto refocusing of the parent window, when the focused transient window is closed. Remove redundant `DS.mouse_get_absolute_position` function (returns mouse position in the screen coordinates, same as `DS.mouse_get_position`).
2022-01-18[macOS export] Implements ad-hoc signing on Linux/Windows, adds extra ↵bruvzg
privacy settings, entitlements warnings and error checking.
2022-01-17Merge pull request #56012 from bruvzg/wt🤎4Rémi Verschelde
2022-01-14Fix Actions mapped to triggers not using the full rangeMarcel Admiraal
2022-01-14Add support for getting native display, window, and view handles.bruvzg
2022-01-13Use mouse event relative motion to calculate mouse velocityMarcel Admiraal