summaryrefslogtreecommitdiffstats
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-1411-173/+313
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-1414-0/+66
| | | | | | | | | | | | | | | | | | | | | | | 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-14147-1494/+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.
* Style: Fix missing/invalid copyright headersRémi Verschelde2020-05-141-0/+30
|
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-1416-72/+41
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Update game controller enums.Marcel Admiraal2020-05-134-58/+45
|
* Add WebSocket debugger, use it for Javascript.Fabio Alessandrelli2020-05-122-4/+23
|
* Merge pull request #38386 from reduz/new-lightmapperRémi Verschelde2020-05-111-23/+23
|\ | | | | New GPU lightmapper
| * New lightmapperJuan Linietsky2020-05-101-23/+23
| | | | | | | | | | | | | | -Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
* | Add drop files functionFabio Alessandrelli2020-05-104-2/+187
| |
* | Fix Closure compiler build, python style.Fabio Alessandrelli2020-05-109-44/+73
| | | | | | | | Move copyToFS into utils.js library included with '--pre-js'.
* | DisplayServerJavaScript implementation.Fabio Alessandrelli2020-05-1010-1208/+1538
| |
* | [HTML5] Locale, input fix, context, exit.Fabio Alessandrelli2020-05-104-91/+112
|/ | | | | | | Add missing semicolumns in engine.js Add optional extra args to JS Engine.startGame Remove loader.js, explicit noExitRuntime. Also add onExit callback (undocumented in emscripten)
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-106-111/+264
| | | | Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-1014-39/+78
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Style: Add missing copyright headersRémi Verschelde2020-05-101-2/+2
|
* Merge pull request #38561 from bruvzg/wintab_extra_mm_eventsRémi Verschelde2020-05-081-0/+55
|\ | | | | WinTab: Make movement smoother and handle pressure/tilt changes when cursor is not moving.
| * WinTab: Adds extra "mouse move" events to make movement smoother and ↵bruvzg2020-05-081-0/+55
| | | | | | | | correctly handle pressure/tilt change when cursor is not moving.
* | Added mapping for KEY_MENU to VK_APPS (0x5d) so context menu's triggered by ↵Eric M2020-05-081-1/+1
|/ | | | the keyboard menu button work
* Remove WinTab error message.bruvzg2020-05-071-1/+1
|
* clang-format: Add JavaImportGroups for Java codeRémi Verschelde2020-05-0636-45/+109
|
* Merge pull request #38483 from bruvzg/wintab_apiRémi Verschelde2020-05-052-8/+224
|\ | | | | Add support for the WinTab API for pen input.
| * [Windows] Add support for the WinTab API for pen input.bruvzg2020-05-052-8/+224
| |
* | Address `OS.request_permissions()` bug when non-platform permission(s) is ↵Fredia Huya-Kouadio2020-05-051-4/+7
|/ | | | included
* [Linux/Windows] Set pressure to 1.0f when primary button is pressed and ↵bruvzg2020-05-034-4/+37
| | | | device is not pressure sensitive.
* Merge pull request #37756 from madmiraal/fix-x11-pressure-tiltRémi Verschelde2020-05-032-34/+55
|\ | | | | Fix X11 pressure and tilt values.
| * Fix X11 pressure and tilt values.Marcel Admiraal2020-04-102-34/+55
| |
* | Merge pull request #37414 from Schroedi/fix_html_mouse_inputFabio Alessandrelli2020-05-011-1/+1
|\ \ | | | | | | Move wheel handlers from window to canvas element in HTML
| * | Move mouse wheel handler from window to canvas element in HTMLChristoph Schröder2020-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to https://github.com/godotengine/godot/pull/36557 At least in chrome, the following error is printed for each mouse wheel rotation: [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312 This PR moves the handler to the canvas and thereby fixes the error. Tested on: Chrome and Firefox (MacOS), Firefox, Chrome(Android), Safari (IPad + MacOS)
* | | Merge pull request #37802 from ThakeeNathees/window-position-bug-osx-x11Rémi Verschelde2020-04-293-4/+12
|\ \ \ | | | | | | | | display server window position bug fix
| * | | display server window position bug fix (#37323)Thakee Nathees2020-04-113-4/+12
| | | |
* | | | Rename InputFilter back to InputRémi Verschelde2020-04-2827-141/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #37193 from madmiraal/fix-android-export-unicode-errorsRémi Verschelde2020-04-281-5/+23
|\ \ \ \ | |_|/ / |/| | | Fix Android export throwing Unicode errors.
| * | | Fix Android export throwing Unicode errors.Marcel Admiraal2020-03-201-5/+23
| | | |
* | | | Merge pull request #38253 from nekomatata/bullet-update-2.90Rémi Verschelde2020-04-271-3/+5
|\ \ \ \ | | | | | | | | | | Update to bullet master (2.90)
| * | | | Update to bullet master (2.90)PouleyKetchoupp2020-04-271-3/+5
| | | | |
* | | | | Windows: Appease capricious MSVC versions with moody headersRémi Verschelde2020-04-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #37799. Fixes #37986.
* | | | | [macOS] Re-add define for build with 10.14 SDK, remove unsupported 10.12 checks.bruvzg2020-04-262-20/+16
| | | | |
* | | | | Merge pull request #35382 from Calinou/html5-export-title-tagMax Hilbrunner2020-04-261-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Set the `title` tag in the HTML5 export immediately
| * | | | | Set the `title` tag in the HTML5 export immediatelyHugo Locurcio2020-04-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the project title display without having to wait for the project to finish loading.
* | | | | | Fix detection logic for the Android sdk pathFredia Huya-Kouadio2020-04-241-1/+1
| |/ / / / |/| | | | | | | | | | | | | | The previous logic used the 'tools' directory within the Android sdk to validate it. That directory was recently deprecated and removed from the Android sdk folder (https://developer.android.com/studio/releases/sdk-tools)
* | | | | Fix Android templates size regressionFredia Huya-Kouadio2020-04-232-2/+6
|/ / / / | | | | | | | | | | | | | | | | The issue was caused by PR #36906 which changes prevented the generated shared libraries from being stripped. Since the change is only needed for development (debugging) purposes, it's commented out by default.
* | | | Merge pull request #37895 from qarmin/more_leak_fixesRémi Verschelde2020-04-161-1/+4
|\ \ \ \ | | | | | | | | | | Fixes leaks in ResourceCache, Vulkan and X11
| * | | | Fixes leaks in ResourceCache, Vulkan and X11qarmin2020-04-151-1/+4
| | | | |
* | | | | Migrate legacy apache dependency to the GodotPayment pluginfhuya2020-04-156-7/+8
|/ / / / | | | | | | | | | | | | This is the only location in the codebase where it's being used, so no need to make the main lib have a dependency on it.
* | | | Android: Bump build tools to 29.0.3Rémi Verschelde2020-04-141-1/+1
| | | |
* | | | Delete unused drawable resources.fhuya2020-04-134-0/+0
| | | |
* | | | Validate supported architectures when exporting to AndroidSkyJJ2020-04-131-0/+9
| | | |
* | | | Add signal support to Godot Android plugin:fhuya2020-04-108-188/+480
| | | | | | | | | | | | | | | | Supports registering and emitting signal from a Godot Android plugin
* | | | Merge pull request #37256 from m4gr3d/add_custom_build_gradle_settingsRémi Verschelde2020-04-102-0/+7
|\ \ \ \ | | | | | | | | | | Update Android custom template build configuration