summaryrefslogtreecommitdiffstats
path: root/servers/display_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Restructure and reimplement vsync optionsHendrik Brucker2021-07-061-32/+17
| | | | | -Add a v-sync mode setting which allows to choose between DISABLED, ON, ADAPTIVE and MAILBOX -Removed the V-Sync via Compositor option
* Use mouse and joypad enums instead of plain integersAaron Franke2021-06-201-2/+2
| | | | Also MIDIMessage
* Add MOUSE_MODE_CONFINED_HIDDENAaron Franke2021-06-031-0/+1
| | | | Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* Move remaining dummy drivers to servers.Fabio Alessandrelli2021-06-011-5/+11
|
* OS: Remove native video API only implemented on iOSRémi Verschelde2021-05-071-28/+0
| | | | | | See discussion in #43811, it was only implemented on iOS and even that implementation was fairly limited. This would best be provided as plugins for Android and iOS without cluttering the shared OS API.
* doc: Sync classref with current sourceRémi Verschelde2021-02-191-1/+1
| | | | And fix various bogus bindings following previous PRs.
* Move tablet driver API from OS to DisplayServer.bruvzg2021-02-181-0/+5
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Refactor MethodBind to use variadic templatesreduz2020-10-181-1/+0
| | | | Removed make_binders and the old style generated binders.
* Add window click-through support.bruvzg2020-09-171-0/+5
|
* Re-apply "Fixes for windows in X11 tiling WMs"PouleyKetchoupp2020-08-221-0/+4
| | | | | | | From PR #38727 which was reverted in #41373 because of regressions in Ubuntu with Gnome. Co-authored-by: Lorenzo Cerqua <lorenzocerqua@tutanota.com>
* Revert "Fixes for windows in X11 tiling WMs"Juan Linietsky2020-08-191-4/+0
|
* Merge pull request #40487 from nekomatata/virtual-keyboard-enter-fixesRémi Verschelde2020-07-261-2/+3
|\ | | | | Fix Return key events in LineEdit & TextEdit on Android
| * Fix Return key events in LineEdit & TextEdit on AndroidPouleyKetchoupp2020-07-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the device implementation, editor actions could be received with different action ids or not at all for multi-line. Added a parameter to virtual keyboards to properly handle single-line and multi-line cases in all situations. Single-line: Input type set to text without multiline to make sure actions are sent. IME options are set to DONE action to force action id consistency. Multi-line: Input type set to text and multiline to make sure enter triggers new lines. Actions are disabled by the multiline flag, so '\n' characters are handled in text changed callbacks.
* | DisplayServer: separate window showing into another functionLorenzo Cerqua2020-07-231-0/+4
|/ | | | | | | | | | | | When creating a window, Godot would first register it to the WM(show it) and then set its flags. This works fine on a floating WM, but on tiling WMs as soon as a window gets registered the WM immediately acts on the window by scaling it up and treating it as a generic window, being registered without any special flags. This commit separates the showing of the window into another function and calls it after the most important flags are set, making windows with special flags(eg. all popups) work again on tiling WMs. Fixes #37930
* Fix spelling & grammar in comments, docs, and messagesAndy Maloney2020-07-211-1/+1
|
* Fix cancel/OK button order on macOSDaniel Ting2020-07-101-2/+2
| | | | | The macOS platform convention regarding button order is cancel on left, OK on right.
* [macOS] Implement seamless display scaling.bruvzg2020-07-041-0/+1
|
* Environment: Refactor code for readability + moreRémi Verschelde2020-07-011-2/+2
| | | | | | | | | | | | - Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
* Add keyboard layout enumeration / set / get functions (macOS, Windows, ↵bruvzg2020-06-131-11/+22
| | | | Linux/X11), remove latin variant function.
* doc: Sync classref with current sourceRémi Verschelde2020-05-201-2/+2
|
* Fix Android LineEdit editing bugsSkyJJ2020-05-161-1/+1
|
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+28
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Rename InputFilter back to InputRémi Verschelde2020-04-281-13/+13
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Fix Clang warnings on WindowsRémi Verschelde2020-04-011-5/+1
| | | | Fixes #37490.
* some typo in method binds fixedThakee Nathees2020-04-011-1/+1
|
* DisplayServer: Fix registration of GetRenderingDriversFunctionRémi Verschelde2020-03-271-2/+5
| | | | Also improve `--help` output.
* Add macOS DisplayServer implementation.bruvzg2020-03-261-8/+106
| | | | Change global menu to use Callable, add support for check items and submenus.
* Fixes to X11, still pretty brokenJuan Linietsky2020-03-261-2/+2
|
* Implemented drag and drop across windows, both OS and embedded.Juan Linietsky2020-03-261-0/+4
|
* Reworked tooltips to use the popup system.Juan Linietsky2020-03-261-0/+2
|
* Popups have also been converted to windowsJuan Linietsky2020-03-261-0/+1
| | | | Controls using the old modal API have been replaced to use popups.
* Open sub-windows as embedded if the OS does not support themJuan Linietsky2020-03-261-1/+1
|
* Separate DisplayServer from OS on WindowsJuan Linietsky2020-03-261-0/+2
|
* Support for transient windowsJuan Linietsky2020-03-261-0/+2
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-13/+24
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Added a Window node, and made it the scene root.Juan Linietsky2020-03-261-1/+2
| | | | Still a lot of work to do.
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-4/+103
|
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-0/+374