Rémi Verschelde
d6fecf7686
Main: Create user data dir in `setup()`
...
Custom backport of #39563 with preliminary change to make
`OS::ensure_user_data_dir()` public as done in f8a79a9
.
Fixes #32488 .
2021-01-08 10:24:48 +01:00
bruvzg
36a6a713b4
[3.2] Fix file drag-drop on M1 Macs.
2020-12-23 18:01:02 +02:00
bruvzg
718ff146e0
Fix focus loss on macOS.
2020-11-19 11:55:25 +02:00
Pedro J. Estébanez
3ec62c82a3
Implement no-window mode for X11 and MacOS
...
Bonus: Homogeinize and improve OS::alert() for no-window mode
2020-11-09 20:56:12 +01:00
bruvzg
6ea9ee563a
[macOS, 3.2] Suppress momentum scrolling after key press or modifier change to prevent unexpected change of action.
2020-10-13 19:05:05 +03:00
bruvzg
610728c9f1
[3.2] Fix `get_screen_dpi` on macOS for non fractional display scales and update documentation.
2020-10-01 22:55:54 +03:00
Rémi Verschelde
4ad74609ce
Merge pull request #40205 from bruvzg/click-through-3
...
[3.2] Add mouse event pass-through support for window.
2020-10-01 13:58:24 +02:00
bruvzg
df5499fedf
[macOS, 3.2] Fix mouse position in captured mode.
2020-09-25 08:54:30 +03:00
bruvzg
e51fed9d1b
[3.2] Add window click-through support.
2020-09-17 12:36:01 +03:00
bruvzg
2b1cfad591
[macOS] Fix "on top" not set on init, and reseting on window update.
2020-08-15 18:05:59 +03:00
bruvzg
a2f034d3ab
[macOS] Refocus last key window after `DisplayServer::alert` is closed.
...
(cherry picked from commit a05776e20d
)
2020-07-28 00:45:06 +02:00
Rémi Verschelde
b40f3f9740
Style: Sync other changes from new fix_style.sh and clang_format.sh
2020-07-24 10:39:18 +02:00
bruvzg
26a825aac3
[macOS, 3.2] Fix window size on macOS Big Sur (title bar height is no longer same as menu height), use top-left corner as resize origin instead of bottom-left.
2020-07-14 17:38:16 +03:00
bruvzg
e9ab41b71d
[macOS, 3.2] Implement seamless display scaling.
2020-07-07 22:54:33 +03:00
Daniel Ting
3f5f58b9d8
Fix opening URLS with special characters in macOS
...
The Online Tutorials section of InputMap in the editor's built-in
documentation viewer contains this link:
docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html#inputmap
The macOS implementation for opening a link percent-encodes it before
sending it to the browser, resulting in a 404. This is to fix #13422
where filenames with special characters could not be opened in Finder.
However, this breaks URLS so I added a check to see if the resource
scheme is file:// and if so, only then is it escaped. This allows other
schemes like `http`, `ftp`, and `mailto` to be used.
(cherry picked from commit b8e6ff9a7f
)
2020-07-06 14:18:18 +02:00
bruvzg
b233cb640d
[macOS, 3.2] Implement confined mouse mode.
2020-07-02 17:12:16 +03:00
bruvzg
43888ebfaf
[macOS, 3.2] Add support for the Apple Silicon (ARM64) build target.
2020-06-29 14:43:29 +03:00
bruvzg
e2675e9462
macOS, prevent multiple CGDisplayHideCursor calls unpaired with CGDisplayShowCursor.
...
(cherry picked from commit 7a250b579f
)
2020-06-22 12:04:31 +02:00
bruvzg
2256946f79
[3.2] Add keyboard layout enumeration / set / get functions (macOS, Windows, Linux/X11).
2020-06-13 11:01:49 +03:00
bruvzg
c994eb1daf
[3.2] Fix macOS global menu removal and preserve order.
2020-06-02 16:37:19 +03:00
Technohacker
0456311be3
Don't force borderless mode when using per-pixel transparency
2020-05-10 21:05:37 +05:30
Haoyu Qiu
0d8b3efeb7
Adds extra cursors for macOS
...
Before, plain arrow cursor or unsuitable ones were used.
(cherry picked from commit 8f881847c0
)
2020-02-06 13:02:08 +01:00
Haoyu Qiu
bda9145aae
Fixes IME input backspace on macOS
2020-01-14 19:41:42 +08:00
bruvzg
d07cdc594f
[macOS] Load PCK from the .app bundle resources, instead of changing working directory.
2020-01-10 18:02:29 +02:00
Rémi Verschelde
8454804972
Merge pull request #33967 from Calinou/add-os-is-window-focused
...
Add an `OS.is_window_focused()` getter
2020-01-06 11:39:18 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
bruvzg
29ba673fca
[macOS] Send resize event without actually resizing window on backing change.
...
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2019-12-08 18:29:31 +02:00
bruvzg
2ef8c5fac5
iOS modular build and export implementation.
2019-12-01 21:57:18 +02:00
Hugo Locurcio
21a3923410
Add an `OS.is_window_focused()` getter
...
This makes it possible to know whether the window is focused
at a given time, without having to track the focus state manually
using `NOTIFICATION_WM_FOCUS_IN` and `NOTIFICATION_WM_FOCUS_OUT`.
This partially addresses #33928 .
2019-11-28 16:42:51 +01:00
bruvzg
c8bf0ee062
[macOS] Fix locale detection.
2019-11-25 15:55:17 +02:00
bruvzg
e423e1c663
[macOS] Remove CVDisplayLink v-sync hack.
2019-11-21 11:01:47 +02:00
bruvzg
f675621725
[macOS, Windows, X11] Add graphic tablet pen pressure and tilt support to InputEventMouseMotion event.
2019-10-30 14:42:21 +02:00
bruvzg
7b64340eb0
Fix compilation warnings in macOS build, enable `warnings=extra werror=yes` for macOS CI.
2019-10-24 20:37:56 +03:00
bruvzg
509afcea92
Fix non-HiDPI mode on HiDPI displays on macOS Catalina.
2019-10-13 23:15:20 +03:00
PouleyKetchoupp
5bfe32eaa4
Properly revert cursor when using set_custom_mouse_cursor with null
...
Fixes #32486
2019-10-03 13:02:11 +02:00
bruvzg
db6d4352ea
[macOS] Add methods to modify global and dock menus. Add ability to open multiple editor/project manager instances, recent/favourite project list to project manager dock menu and opened scene list to editor dock menu.
2019-08-26 16:45:49 +03:00
Robin Hübner
6ab118c464
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", "modules/gdnative", "modules/gdscript" directories.
2019-08-09 11:13:24 +02:00
Hugo Locurcio
7de2c70e11
Turn `OS.set_min/max_window_size()` warnings into errors
...
Since invalid values will cause the setting to be discarded,
it makes more sense to display an error message instead of a
warning message.
2019-07-30 14:50:52 +02:00
Guilherme Felipe
c3f69c6c76
Fix crash caused by a9a0d0fb15
2019-07-24 15:01:28 -03:00
Guilherme Felipe
a9a0d0fb15
Fix cursor blinking in integrated GPUs
...
Optimization for Input::set_custom_mouse_cursor when used inside
_process function. (Avoids cursor blinking in low end devices)
2019-07-09 19:38:25 -03:00
bruvzg
e19b6296e3
Update macOS global mouse position at startup
2019-06-18 22:44:29 +03:00
Rémi Verschelde
0d61fc2c0f
Merge pull request #29752 from bruvzg/window_size_limits
...
Add ability to limit maximum/minimum window size.
2019-06-17 11:58:00 +02:00
BastiaanOlij
02ea99129e
Adding a new Camera Server implementation to Godot.
...
This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server.
Other parts of Godot can interact with this to obtain images from the camera as textures.
This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
2019-06-15 21:30:32 +10:00
bruvzg
b924fb97d6
Add ability to limit maximum/minimum window size.
2019-06-15 09:49:11 +03:00
Rémi Verschelde
ec98db048f
Merge pull request #29481 from bruvzg/macos_fix_dvorak_qwerty_cmd_hotkeys
...
Fixes hotkeys on "Dvorak - QWERTY ⌘" keyboard layout.
2019-06-12 12:50:55 +02:00
Rémi Verschelde
0e6cac8ab8
Merge pull request #29465 from bruvzg/per_pixel_transp_impr
...
Removes redundant "splash" setting, improves per pixel transparency documentation.
2019-06-12 12:50:17 +02:00
bruvzg
360fb3af50
[macOS] Fixes hotkeys on "Dvorak - QWERTY ⌘" keyboard layout.
2019-06-04 19:50:50 +03:00
bruvzg
8ff72987c0
[macOS] Fixes unicode input with IME mode inactive, Improves IME mode documentation.
2019-06-04 11:29:00 +03:00
bruvzg
54863b20e6
Removes redundant "display/window/per_pixel_transparency/splash" setting, improves per pixel transparency documentation.
2019-06-04 11:21:29 +03:00
bruvzg
2b9ed68d6a
Add native window/taskbar icon support for Windows and macOS.
...
Co-authored-by: Markus Törnqvist <mjt@nysv.org>
2019-05-24 14:23:57 +03:00