bruvzg
a9808d9d7a
[macOS] Disable window redraw during resize, when rendering in the separate thread.
2022-03-04 10:25:39 +02:00
bruvzg
5fdea69276
[macOS and iOS export] Add localized application name to the translation .plist files.
2022-03-04 09:27:44 +02:00
Sergey Minakov
15ef056997
[iOS] Fix multitouch not working correctly
2022-02-26 23:18:28 +03:00
bruvzg
74ff5921d6
Improve popup window handling.
...
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
2022-02-25 09:33:27 +02:00
bruvzg
d39ec5b9ed
[Windows] Fix borderless window flag toggle and restoring minimized borderless window.
2022-02-22 10:56:58 +02:00
Mai Lavelle
dfdc1c1642
Fix deleting of directories on Linux
...
Trailing slash of directories was mishandled, and incorrect derived paths
were formed. Stripping the slash fixes this.
2022-02-20 08:38:59 -05:00
Sergey Minakov
8b3ac9479e
[iOS] Fix incorrect method name for input dragging event
2022-02-19 16:40:49 +03:00
bruvzg
372e24265a
[Linux/X11] Fallback to the X server root window to get screen rects, if Xinerama is not available.
2022-02-18 13:29:10 +02:00
bruvzg
0c27667124
[Windows] Fix Vulkan driver crash on sub-window minimization.
2022-02-17 13:34:08 +02:00
Rémi Verschelde
b8b4580448
Style: Cleanup single-line blocks, semicolons, dead code
...
Remove currently unused implementation of TextureBasisU, could be re-added
later on if needed and ported.
2022-02-16 14:06:29 +01:00
Rémi Verschelde
c4c29728a3
i18n: Sync editor translations with Weblate
...
Minor proofreading of new OSX export strings.
(cherry picked from commit 9f09251027
)
2022-02-16 10:08:40 +01:00
Rémi Verschelde
a2e540f617
Merge pull request #58173 from akien-mga/js-build-fix-is_project_manager
2022-02-16 09:43:03 +01:00
Rémi Verschelde
f9629deade
HTML5: Fix build after #52742
...
Fixes #58172 .
2022-02-16 08:37:58 +01:00
Hugo Locurcio
ee7cd9a3a1
Add an OS.get_processor_name()
method
...
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-15 20:55:53 +01:00
Rémi Verschelde
11572c6e30
Editor: Cleanup some includes dependencies
...
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-15 14:54:15 +01:00
Rémi Verschelde
a6aba6919f
Merge pull request #58081 from tavurth/bugfix/high-macos-cpu-usage
2022-02-15 13:40:21 +01:00
Will Whitty
ab5eaf0ad9
Fix new performance regressions (short delay_usec)
...
My Mac was using 20% cpu again, which was related to the Javascript
Export plugin.
I had however no export templates setup in the project so this is more
of a stopgap fix.
2022-02-15 14:05:19 +03:00
Rémi Verschelde
f810f76890
Merge pull request #57306 from trollodel/remove_editornode_param
2022-02-14 16:40:40 +01:00
trollodel
05b56f316d
Remove most EditorNode constructor parameters and fields
2022-02-14 14:16:24 +01:00
Fabio Alessandrelli
f4a80f9ca7
[OSX] Codesign exporter now uses CryptoCore RNG.
2022-02-14 10:45:50 +01:00
Fabio Alessandrelli
6b5634b96a
[OS/Crypto] Add get_entropy to OS.
...
Implemented via `BCryptGenRandom` on Windows.
Implemented via `getentropy` syscall when available.
Implemented via `/dev/urandom` device as a fallback.
The `/dev/urandom` fallback can be disabled via the `NO_URANDOM` build
flag.
Note: The HTML5 version relies on emscripten file system urandom
device which itself uses the Crypto API when available or the plain
old not crypto-safe `Math.random()` otherwise.
Restore get_entropy.
2022-02-14 10:45:50 +01:00
bruvzg
5c641372fc
[macOS] Fix macOS producing alert sound on some input actions.
2022-02-12 19:58:39 +02:00
Rémi Verschelde
d3a6b6daaa
Merge pull request #56953 from bruvzg/ex_wnd
2022-02-12 16:46:55 +01:00
Hendrik Brucker
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +01:00
bruvzg
7d59b81d79
Add exclusive window handling to DisplayServer (on macOS and Windows).
2022-02-12 00:14:09 +02:00
bruvzg
65426f831f
[Windows] Fix drag-and-drop.
2022-02-11 09:34:55 +02:00
Fabio Alessandrelli
ffe248cbdf
[HTML5] Fetch API now passes credentials.
...
Used default value before, i.e. "same-origin", now uses "include" (i.e.
include for cross-origin if cross-origin is allowed).
2022-02-10 22:22:03 +01:00
Rémi Verschelde
1bdb82c64e
Fix typos with codespell
...
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-10 12:30:19 +01:00
pkowal
d469cfb2ab
Change godot.ico to uncompressed/fixed size
2022-02-09 11:20:49 +01:00
Rémi Verschelde
5b866426fd
Merge pull request #57605 from naithar/fix/godot-view-touch-4.0
2022-02-09 11:05:26 +01:00
Rémi Verschelde
90162851a7
Core: Move generated VERSION_HASH
to a .cpp
file
...
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-09 09:20:17 +01:00
Rémi Verschelde
b480140ce1
Merge pull request #57825 from Calinou/ios-remove-obsolete-define
2022-02-09 00:27:08 +01:00
Hugo Locurcio
f7529d417d
Remove obsolete define in the iOS buildsystem code
...
This define was used by the WebM/libvpx code, but it's now removed
in `master`.
2022-02-08 22:45:36 +01:00
Hugo Locurcio
74fc4410f4
Remove support for ARMv7 (32-bit) on iOS
...
All iOS devices since the iPhone 5S support ARMv8 (64-bit).
The last iOS version supported on ARMv7 devices is 10.x, which is
too old to run Godot 4.0 projects since the minimum supported
iOS version is 11.0.
2022-02-08 22:11:29 +01:00
Rémi Verschelde
592e92d938
Merge pull request #57809 from akien-mga/osx-11.00-warning
2022-02-08 17:32:49 +01:00
Rémi Verschelde
d3345ef1f8
OSX: Pass -mmacosx-version-min=11.0
instead of 11.00
...
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 16:20:13 +01:00
Rémi Verschelde
2a39a1c221
Merge pull request #57612 from maiself/improve-gamepad-detection
2022-02-08 15:22:31 +01:00
bruvzg
720fbe3101
[macOS] Fix NO_FOCUS macOS flag.
2022-02-08 13:22:03 +02:00
Rémi Verschelde
6b13056409
Merge pull request #57794 from bruvzg/x11_fs_fix
2022-02-08 10:42:18 +01:00
bruvzg
4fcc35bdfa
[X11] Fix decoration reset when returning from fullscreen mode.
2022-02-08 11:01:24 +02:00
bruvzg
8bc837453b
[Windows] Fix fullscreen mode detection on window move/resize.
2022-02-08 10:36:57 +02:00
Rémi Verschelde
be1adf491a
Merge pull request #57736 from TechnicalSoup/Patch-3
2022-02-07 13:58:35 +01:00
Rémi Verschelde
1694626e03
Merge pull request #57305 from bruvzg/macos_cleanup
2022-02-07 13:36:09 +01:00
TechnicalSoup
20fb34927d
Fix icons for sub windows
...
Modify the create_sub_window method to set an icon for all sub windows, setting the icon to the same icon as the main window.
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
2022-02-07 23:03:10 +11:00
Fabio Alessandrelli
948e66c3d6
[HTML5] Implement JavaScript PWA update callbacks.
...
Allows detecting when a new version of the progressive web app service
worker is waiting (i.e. an update is pending), along a function to force
the update and reload all clients.
2022-02-06 18:53:50 +01:00
Fabio Alessandrelli
cc4612277b
[HTML5] PWA service worker prefers cached version.
...
Use an offline first approach, where we prefer the cached version over
the network one.
This forces games using PWA to always re-export the project and not just
the PCK, so that the service worker version gets updated correctly, and
the end-user cache is correctly cleared on update.
2022-02-06 18:46:22 +01:00
Rémi Verschelde
79a4d782a5
Merge pull request #57709 from jmb462/missing-sname-optimization
2022-02-06 17:03:11 +01:00
jmb462
1ce81dc5f2
Add missing SNAME macro optimization in some function calls
2022-02-06 15:54:04 +01:00
jordi
635da44ef8
Snap refresh rate to hundreths place on X11
2022-02-06 13:24:57 +01:00
Rémi Verschelde
225a3b2545
Merge pull request #57341 from bruvzg/win_multiwin_fs
2022-02-04 13:28:56 +01:00
Rémi Verschelde
2e320dcf87
Merge pull request #57617 from bruvzg/char_cleanup
2022-02-04 13:06:38 +01:00
Rémi Verschelde
d235c1bb19
Merge pull request #57335 from jordigcs/display-refresh-rate
2022-02-04 11:51:07 +01:00
Rémi Verschelde
85f6151e9d
Merge pull request #54645 from rxlecky/editor-window-offset-bug-45740
2022-02-04 11:48:57 +01:00
bruvzg
f4ea9cd9f3
[Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to allow multi-window interface in full-screen.
...
[Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
2022-02-04 12:08:46 +02:00
bruvzg
244db37508
Cleanup and move char functions to the char_utils.h
header.
2022-02-04 11:35:01 +02:00
Mai Lavelle
b966ca6167
Improve detection of gamepads on Linux
...
Some devices (Nintendo Switch Right Joy-Con) report only a right stick.
2022-02-03 22:56:43 -05:00
jordi
54dec44dba
Add screen_get_refresh_rate to DisplayServer
2022-02-03 21:50:32 -06:00
Sergey Minakov
eb24c91040
[iOS] Fix touch handling for overlay views
...
Workaround for GodotView touches being called from UIWindow on different UIView input
2022-02-03 23:52:20 +03:00
Fabio Alessandrelli
6d3d17651a
Revert "[HTML5] Better engine config parsing."
...
This reverts commit 2f509f1b12
.
Breaks closure compiler builds.
And adds a warning for future readers.
2022-02-03 19:17:51 +01:00
Rémi Verschelde
c4f38813b4
Merge pull request #57577 from bruvzg/mac_export_tr
2022-02-03 15:16:46 +01:00
Rémi Verschelde
e165f18ae5
Merge pull request #57350 from NeilKleistGao/master
2022-02-03 12:36:23 +01:00
NeilKleistGao
1cf2b9a44b
Add warning for Windows export when rcedit is not configured
2022-02-03 16:25:00 +08:00
bruvzg
2eeff4caec
[macOS] Add empty translation files to the exported app bundle, to allow translation detection by the OS.
2022-02-03 09:56:10 +02:00
Rémi Verschelde
969780cd2d
Merge pull request #57203 from bruvzg/ios_export_fix
2022-02-02 23:14:30 +01:00
Fabio Alessandrelli
6ff753675a
Merge pull request #56771 from mhilbrunner/unacceptable
...
Verify custom HTTP headers, fix off by one error
2022-02-02 18:28:30 +01:00
bruvzg
b84ef16aa7
[macOS] Cleanup and split Objective-C objects to the separate files
2022-02-01 16:03:04 +02:00
bruvzg
33d6d4bdf7
[macOS] Enable Objective-C ARC
2022-02-01 15:58:30 +02:00
Rémi Verschelde
ea12094f19
Merge pull request #57497 from Geometror/fix-mouse-mode
2022-02-01 14:46:30 +01:00
Rémi Verschelde
5a1f42b322
Windows: Fix GCC -fpermissive error with 'pck' section workaround
...
Follow-up to #57450 .
2022-02-01 11:33:41 +01:00
Hendrik Brucker
c058361a23
Fix captured mouse mode
2022-02-01 03:49:51 +01:00
SeleckyErik
d14165dae9
Simplify DisplayServerWindows pos/size message handling
...
Replace WM_MOVE and WM_SIZE message handling with WM_POSCHANGED instead.
This is for multiple reasons:
1) Microsoft suggest using WM_POSCHANGED is more efficient
2) RectChanged callback is only called once for most window operations
3) Simplifies message handling code
2022-01-31 18:28:48 +01:00
Rémi Verschelde
f14b1441e7
Merge pull request #56548 from madmiraal/fix-53894
2022-01-31 18:08:48 +01:00
Fabio Alessandrelli
93968e1451
[HTML5] Fix gamepad samples not being properly reset.
2022-01-31 14:56:48 +01:00
Fabio Alessandrelli
2f509f1b12
[HTML5] Better engine config parsing.
2022-01-31 14:56:40 +01:00
Bartłomiej T. Listwon
e4bde938a1
Prevent LTCG (MSVC LTO) from removing "pck" section
2022-01-30 16:45:28 +01:00
Nathan Franke
8a0a3accee
simplify formatting scripts, add a clang-tidy script, and run clang-tidy
2022-01-29 04:41:03 -06:00
Rémi Verschelde
83c7bf6d94
Merge pull request #57336 from bruvzg/win_con_redir
2022-01-28 15:04:09 +01:00
bruvzg
2c8511579f
Fix MOUSE_MODE_CONFINED not updating area when full-screen is toggled or current screen is changed.
2022-01-28 10:15:08 +02:00
bruvzg
99a1e552ac
[Windows] Disable console I/O redirection, if it's already redirected to the pipe or file.
2022-01-28 08:30:01 +02:00
Rémi Verschelde
4b36b6e92a
Merge pull request #56785 from bruvzg/nat_handles_4
2022-01-27 12:12:34 +01:00
Rémi Verschelde
203e261526
Merge pull request #57293 from mhilbrunner/windows-console-fixups
2022-01-27 11:48:53 +01:00
Max Hilbrunner
3ef5a97505
Verify custom HTTP headers, fix off by one error
2022-01-27 03:22:37 +01:00
Max Hilbrunner
9590eeebb5
Minor typo fixups to Windows console changes
2022-01-27 03:11:00 +01:00
Fredia Huya-Kouadio
6a4614ef48
Include the godot_plugin_jni.cpp
file into the platform/android/SCsub
file
...
This should resolve https://github.com/godotengine/godot/issues/57209
2022-01-26 14:50:56 -08:00
Fredia Huya-Kouadio
b284dd92d3
Fix XR Android manifest metadata
...
- Adds the parameters for supported Meta devices, which is required to access some device specific capabilities
- Remove the 'com.samsung.android.vr.application.mode' metadata
2022-01-26 09:05:47 -08:00
bruvzg
57db989a97
[iOS] Fix iOS export with manually specified signing/provisioning data.
2022-01-25 17:13:03 +02:00
Haoyu Qiu
8be49838b3
Fix memory leak when move to trash fails on Linux
2022-01-25 18:38:13 +08:00
Rémi Verschelde
57a057f7ff
Merge pull request #56754 from madmiraal/fix-45592
2022-01-24 10:05:42 +01:00
Fabio Alessandrelli
3f93528483
Merge pull request #57074 from Faless/net/4.x_http_client_64
...
[Net] Fix get_response_body_length for large files.
2022-01-23 04:42:20 +01:00
Fabio Alessandrelli
18c2e734ac
Merge pull request #56977 from Calinou/web-editor-add-local-web-server
...
Add local web server configuration designed for web editor development
2022-01-23 04:41:32 +01:00
Fabio Alessandrelli
01e5e98312
[Net] Fix get_response_body_length for large files.
...
Parsing was fixed, but not the return value for the exposed getter.
2022-01-23 01:30:35 +01:00
bruvzg
3bf05c9018
[Export] Instead of removing unsupported options, hide it.
2022-01-22 22:56:58 +02:00
Omar Polo
bd448e5535
Rename or refactor macros to avoid leading underscores
...
These are not used consistently and some can conflict with
system-specific defines. While here, also delete some unused macros.
2022-01-20 20:29:15 +01:00
Hugo Locurcio
9ef9bfb12c
Add local web server configuration designed for web editor development
...
Running `npm run serve` in `platform/javascript/` will start
a web server that uses `bin/` as its root folder. This means you
can extract a compiled web editor ZIP in this folder and immediately
be able to test the web editor.
Headers required for the use of SharedArrayBuffer are automatically
added to every response.
2022-01-20 16:42:00 +01:00
Rémi Verschelde
9e0973ca23
Merge pull request #56972 from lawnjelly/warn_unused
2022-01-20 15:34:41 +01:00
lawnjelly
b411a731fe
Add nodiscard to core math classes to catch c++ errors.
...
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-20 13:07:49 +00:00
Rémi Verschelde
b6cb366884
Merge pull request #56949 from timothyqiu/has-clipboard
2022-01-20 12:09:45 +01:00
Hugo Locurcio
da19898c24
Force threads when compiling web editor instead of erroring out
...
This makes the build process more seamless. A similar option is
already forced for initial memorywhen needed.
2022-01-19 17:07:20 +01:00
Haoyu Qiu
314f309035
Add DisplayServer.clipboard_has()
to check clipboard content
2022-01-19 23:44:20 +08:00
Rémi Verschelde
74b110a736
Merge pull request #56825 from bruvzg/macos_fix_fullscr_multiwindow
2022-01-19 10:03:17 +01:00
Rémi Verschelde
7c771ea310
Merge pull request #47522 from madmiraal/rename-test_width-test_height
2022-01-18 13:39:57 +01:00
bruvzg
d62ca0c9c0
Window management improvements.
...
[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 11:47:03 +02:00
bruvzg
8bb00a2dfd
[macOS export] Implements ad-hoc signing on Linux/Windows, adds extra privacy settings, entitlements warnings and error checking.
2022-01-18 11:11:02 +02:00
Rémi Verschelde
8bdef23f7f
Merge pull request #56012 from bruvzg/wt 🤎 4
2022-01-17 13:26:15 +01:00
Rémi Verschelde
7176a43260
Remove property hints referencing unsupported svgz extension
...
The wrongly claimed support for it was removed in #49645 .
See also #56862 .
2022-01-17 12:40:43 +01:00
bruvzg
962d2df042
[iOS] Improve iOS icon / loading screen export.
...
Merge "required" / "optional" icons into a single list.
Remove "generate_missing" and automatically rescale icons / loading screens that are missing or have incorrect size.
Print warning if icon or loading screen has incorrect size.
2022-01-17 11:45:31 +02:00
Hugo Locurcio
40be15920f
Remove support for PVRTC texture encoding and decoding
...
On the only platform where PVRTC is supported (iOS),
ETC2 generally supersedes PVRTC in every possible way. The increased
memory usage is not really a problem thanks to modern iOS' devices
processing power being higher than its Android counterparts.
2022-01-14 21:08:22 +01:00
Rémi Verschelde
5f4e90d602
Merge pull request #56238 from madmiraal/fix-44178
...
Fix Actions mapped to triggers not using the full range
2022-01-14 19:59:29 +01:00
Marcel Admiraal
f41c72c538
Fix Actions mapped to triggers not using the full range
2022-01-14 15:36:20 +00:00
Yuri Roubinsky
9418a2a599
Flush input events before destroying the window
2022-01-14 17:43:31 +03:00
bruvzg
89f37d4105
Add support for getting native display, window, and view handles.
2022-01-14 13:36:32 +02:00
luz paz
858bcd5058
Fix various typos
...
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-13 23:20:01 -05:00
Marcel Admiraal
5250cdd150
Use mouse event relative motion to calculate mouse velocity
2022-01-13 15:23:21 +00:00
Rémi Verschelde
cd93bb9130
Merge pull request #56673 from winterpixelgames/bugfix-android-keystore-paths
2022-01-12 16:45:44 +01:00
Rémi Verschelde
585231a172
Merge pull request #56492 from akien-mga/remove-author-docstrings
2022-01-12 15:24:17 +01:00
Rémi Verschelde
adf8af86f8
Merge pull request #56700 from bruvzg/macos_terminal_activation
2022-01-12 11:37:37 +01:00
Rémi Verschelde
dc3b2e6ea2
Merge pull request #56717 from bruvzg/macos_opengl_hdr
2022-01-12 11:35:31 +01:00
bruvzg
a38f56cfc3
[macOS] Fix OpenGL color space on HDR displays.
2022-01-12 10:50:17 +02:00
clayjohn
99064d57db
New OpenGL batching canvas renderer
2022-01-11 22:26:18 -08:00
bruvzg
927105692f
[macOS] Improve window activation hack.
2022-01-11 23:25:12 +02:00
Rémi Verschelde
46624388d4
Merge pull request #56322 from madmiraal/fix-42450
2022-01-11 11:33:59 +01:00
Jason Knight
3e288f65bb
Android export plugin passes absolute file paths to gradle for keystores.
2022-01-10 14:34:00 -06:00
bruvzg
4e2c6c1444
[macOS export] Improve code signing/notarization options validation.
2022-01-10 13:18:59 +02:00
Rémi Verschelde
a489eb853d
Merge pull request #56618 from Pineapple/uwp-qpc-tweaks
...
UWP: Simplify QueryPerformanceCounter usage
2022-01-08 23:40:24 +01:00
Rémi Verschelde
277a159c48
Merge pull request #56497 from Pineapple/qpc-tweaks
...
Windows: Simplify QueryPerformanceCounter usage
2022-01-08 23:40:01 +01:00
Bartłomiej T. Listwon
24fe82da63
UWP: Simplify QueryPerformanceCounter usage
2022-01-08 13:10:27 +01:00
Rémi Verschelde
7cb0f9d079
Merge pull request #56514 from mhilbrunner/windows-missing-inputs
2022-01-07 10:29:55 +01:00
Aaron Franke
9a0e4ea550
Fix UTC typos in UWP platform
2022-01-06 10:49:48 -08:00
bruvzg
c69e0d16bc
Fix multiple missing UTF-8 decoding.
2022-01-06 14:35:22 +02:00
Marcel Admiraal
ac1e7e10eb
Set window to focused when created
2022-01-06 08:04:59 +00:00
Rémi Verschelde
75c06289c4
Merge pull request #56517 from bruvzg/fix_export_utf8
2022-01-05 15:08:27 +01:00
Rémi Verschelde
63d9308b4b
Merge pull request #56047 from piiertho/feature/osx-sign-directory
2022-01-05 14:38:17 +01:00
bruvzg
d2573c1636
Fix decoding UTF-8 filenames on unzipping.
2022-01-05 14:31:20 +02:00
Max Hilbrunner
6a6c4f2197
Windows input: Fix wrong OEM key, add missing keys
2022-01-05 12:20:47 +01:00
Bartłomiej T. Listwon
5ba38fb208
Windows: Simplify QueryPerformanceCounter usage
2022-01-05 07:40:46 +01:00
Rémi Verschelde
ba2bdc478b
Style: Remove inconsistently used @author
docstrings
...
Each file in Godot has had multiple contributors who co-authored it over the
years, and the information of who was the original person to create that file
is not very relevant, especially when used so inconsistently.
`git blame` is a much better way to know who initially authored or later
modified a given chunk of code, and most IDEs now have good integration to
show this information.
2022-01-04 20:42:50 +01:00
Marcel Admiraal
f107139979
Rename Project Window width and height settings to match their function
2022-01-04 13:59:16 +00:00
Rémi Verschelde
1d6f8ad837
Merge pull request #56438 from madmiraal/fix-56428
...
Fix tablet tilt values returning bad values
2022-01-03 23:48:46 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Fredia Huya-Kouadio
a8a20a0e02
Merge pull request #56132 from m4gr3d/fix_android_studio_builds
...
Fix Android Studio builds
2022-01-03 09:19:21 -08:00
Rémi Verschelde
5e4d1c26aa
Merge pull request #56297 from Chaosus/fix_win32_cursor_resize
2022-01-03 14:00:00 +01:00
Marcel Admiraal
75a58360fd
Fix tablet tilt values returning bad values
2022-01-02 12:15:14 +00:00
luz paz
a124f1effe
Fix various typos
...
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update doc/classes/TileSetScenesCollectionSource.xml
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/graph_edit.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/rich_text_label.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Revert previously committed change
2022-01-02 01:03:58 -05:00
Marcel Admiraal
3105d9b1f3
Rename speed to velocity when it's a directional Vector
2021-12-29 15:35:26 +00:00
Pierre-Thomas Meisels
5e0e4f209a
OSX: Add signing of directory structure in Library when exporting for OSX.
...
OSX: Add exporting of folder structure in PlugIns when exporting for OSX.
2021-12-28 14:39:42 +01:00
Yuri Roubinsky
0f83d7272c
Fix cursor stucking in resize shape
2021-12-28 13:35:07 +03:00
Aaron Franke
cd6ac96bbb
Remove build system code for 32-bit iOS
2021-12-22 00:44:19 -08:00
ne0fhyk
1345e66935
Fix Android Studio builds.
2021-12-21 07:41:12 -08:00
Rémi Verschelde
51c5fa48ab
Merge pull request #56039 from Rubonnek/update-detect-prime-formatting-master
2021-12-20 10:28:16 +01:00
bruvzg
ea5bb8b47d
[Windows] Improve console handling and execute/create_process.
...
Always build with the GUI subsystem.
Redirect stdout and stderr output to the parent process console.
Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with `create_process`).
Add `open_console` argument to the `execute` and `create_process` to open a new console window.
Remove `interface/editor/hide_console_window` editor setting.
Remove `Toggle System Console` menu option.
Remove `set_console_visible` and `is_console_visible` functions.
2021-12-18 10:14:07 +02:00
Bastiaan Olij
d08b28aeb0
Fix initialising of gl_manager and checking gl_manager and context_vulkan preventing crash issues.
2021-12-18 12:21:16 +11:00
Wilson E. Alvarez
3c198aecaa
Sync detect_prime_x11.cpp formatting changes from 3.x branch
2021-12-17 16:08:13 -05:00
Rémi Verschelde
33e03386b3
Merge pull request #55966 from bruvzg/wt 💩 4
2021-12-16 23:05:24 +01:00
Sam Lantinga
8df0baf6f5
Fixed detecting the Valve Streaming Gamepad
...
Fixed the GUID, and compare the contents of the GUID, not just the pointers
2021-12-16 08:52:47 -08:00
Marcel Admiraal
6e38fc4b80
Only rotate Android sensor values for sensors that need them rotated
2021-12-15 18:15:08 +00:00
bruvzg
1fdb6a99c8
[Windows] Detect new Windows Terminal and disable unsupported set_console_visible code.
2021-12-15 20:00:57 +02:00
bruvzg
6ee48afb4e
[Windows] Open a new console window for the editor instances.
2021-12-14 14:49:58 +02:00
Aaron Franke
368c0bc0ac
Misc build system fixes
2021-12-10 12:14:27 -06:00
Rémi Verschelde
bdf8340e59
Merge pull request #43181 from nathanfranke/string-empty
...
Replace String comparisons with "", String() to is_empty()
2021-12-10 08:56:31 +01:00
Rémi Verschelde
89b8de71c0
Merge pull request #55767 from m4gr3d/config_hand_tracking_frequency_master
2021-12-09 23:04:41 +01:00
Rémi Verschelde
e3b0282080
Merge pull request #55759 from m4gr3d/enable_exclude_from_recents_master
2021-12-09 23:03:10 +01:00
Rémi Verschelde
1a2cdcbcc8
Merge pull request #55737 from m4gr3d/add_min_target_sdk_configs_master
2021-12-09 23:01:30 +01:00
ne0fhyk
862c0d06fb
Add support for configuring the xr hand tracking frequency mode
2021-12-09 12:25:48 -08:00
Fredia Huya-Kouadio
cfa81ff32a
Enable configuration of the android:excludeFromRecents
activity attribute.
2021-12-09 08:50:47 -08:00
Nathan Franke
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
Fredia Huya-Kouadio
2e7e6502dd
Add configs to specify the min and target sdk versions.
2021-12-08 09:13:07 -08:00
Luis Sanchez
40f26cb260
Fix files_dropped in HTML5 export.
...
(Ignore trailing slash when creating the temporary directory)
2021-12-03 20:21:39 +01:00
Rémi Verschelde
7da392bcc5
Don't return reference on copy assignment operators
...
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this
can lead to confusing code and subtle bugs.
According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B) , C++
allows any arbitrary return type, so this is standard compliant.
This could be re-assessed if/when we have an actual need for a behavior more
akin to that of the C++ STL, for now this PR simply changes a handful of
cases which were inconsistent with the rest of the codebase (`void` return
type was already the most common case prior to this commit).
2021-11-30 16:26:29 +01:00
Fabio Alessandrelli
470496d8d4
[HTML5] Fix multi-touch input handling.
...
The code to populate the input data for WebAssembly was incorrectly
overriding values when multiple touches were present due to wrong
indexing.
2021-11-30 11:10:21 +01:00
Rémi Verschelde
8f0c6ce726
Merge pull request #55347 from Faless/js/4.x_scons_emcc_abspath
2021-11-26 13:41:16 +01:00
Fabio Alessandrelli
eaedc92c61
[HTML5] Use absolute path for JS lib/pre/externs.
...
Ensure better compatibility when emcc which may run some tools from
different paths (e.g. closure compiler).
This fixes externs include issues with modern emcc using the closure
compiler.
2021-11-26 12:44:51 +01:00
Yuri Roubinsky
ab6e370a9e
Merge pull request #55344 from Chaosus/repair_error_func
2021-11-26 14:06:00 +03:00
Yuri Roubinsky
a4b7de6b23
Fix console colors on Windows
2021-11-26 13:10:55 +03:00
Fabio Alessandrelli
63e2db2499
[HTML5] Fix focus (again) in Firefox's iframes.
...
This actually makes sense(?), when running inside an iframe the active
element might be our canvas, while the iframe itself is not active in
the parent window. Since we consume the event, the iframe does not get
focused in Firefox (but does in Chromium-based browsers), so we must
always call focus to handle such occasions.
2021-11-26 09:44:00 +01:00
Yuri Roubinsky
675111e480
Restore console window output for editor app on Windows
2021-11-25 22:06:45 +03:00
Lightning_A
e078f970db
Rename remove()
to remove_at()
when removing by index
2021-11-23 18:58:57 -07:00
Rémi Verschelde
c038768379
Merge pull request #55159 from m4gr3d/add_oculus_openxr_config_master
2021-11-22 10:28:06 +01:00
Marcel Admiraal
2fa4c6498a
Fix Android get_screen_orientation()
not returning valid values
2021-11-21 12:05:25 +00:00
Fredia Huya-Kouadio
882ec0d611
Add support for OpenXR export configurations.
2021-11-20 06:10:44 -08:00
Fabio Alessandrelli
46fdba5f8b
[HTML5] Add WebGL2 (GLES3) support using the OpenGL renderer.
...
Note, the editor build requires the mbedtls module to be manually
enabled, as it is currently needed as a ResourceUID dependency.
This will need to be addressed in a separate PR.
2021-11-19 16:59:27 +01:00
Rémi Verschelde
fc9de5ba7f
Merge pull request #54499 from Faless/threads/4.x_work_pool_default
2021-11-19 09:39:21 +01:00
Fabio Alessandrelli
91dbc288cc
[HTML5] Add checks to Gamepad API events.
...
In some conditions the events might be generated even when the `gamepad`
object is not accessible due to Security Context requirements.
This commit adds a check to avoid firing the handler in those cases.
2021-11-19 04:07:01 +01:00
Fabio Alessandrelli
f13c7fc83e
[HTML5] Fix input not focusing canvas.
...
mousedown and touchstart should focus the canvas to ensure correct
application lifecycle.
2021-11-19 04:06:55 +01:00
Rémi Verschelde
e7216d4085
Merge pull request #55072 from KoBeWi/untitled_goose_project
2021-11-18 13:47:32 +01:00
kobewi
f6d16d55c6
Fix data directory of unnamed projects
2021-11-18 12:31:29 +01:00
Rémi Verschelde
64d7df1e5f
Windows: Use /bigobj
only for debug builds, breaks GCC LTO
...
Building `target=release` and `target=release_debug` builds with MinGW-GCC
errors when linking with LTO.
Since it's only needed for `target=debug` builds anyway (bigger objects), which
we don't build with LTO, this works around the issue.
2021-11-18 10:38:35 +01:00
Will Jordan
283e31a3e2
Fix crash on macOS (AS) when dualshock4 is removed
2021-11-17 15:13:53 +01:00
bruvzg
c8037ef2e5
[macOS] Fix crash handler not printing function names on M1 Macs.
2021-11-16 08:45:34 +02:00
Rémi Verschelde
6715bc7754
Merge pull request #54992 from RandomShaper/drop_android_db_setting
2021-11-15 17:54:23 +01:00
Pedro J. Estébanez
cab870e9d3
Drop pointless Android depth buffer setting
2021-11-15 11:02:01 +01:00
Aaron Franke
35b9263e5b
Fix typo in architecture name for x86_64 macOS
2021-11-12 20:46:08 -06:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Rémi Verschelde
88c4380737
Modules: Make sure to include modules_enabled.gen.h where needed
2021-11-12 13:42:58 +01:00
Rémi Verschelde
7d2900e1bd
Merge pull request #54876 from bruvzg/no_captured_move
2021-11-11 14:47:13 +01:00
bruvzg
f6e449a194
Make window unmovable by dragging title bar, when mouse in captured or confined mode.
2021-11-11 14:02:08 +02:00
Rémi Verschelde
2beaae4b6f
String: Remove erase
method, bindings can't mutate String
2021-11-11 11:23:32 +01:00
Rémi Verschelde
9b6897307c
Merge pull request #54837 from akien-mga/windows-bigobj
2021-11-10 17:48:35 +01:00
Rémi Verschelde
11d1319afd
Windows: Enable /bigobj
to increase max size for obj files
...
Equivalent `-Wa,-mbig-obj` for GCC/Clang.
This started being needed to compile harfbuzz in `target=debug` with MinGW/GCC,
but there doesn't seem to be any drawback to enabling `/bigobj` (aside from
losing support for pre-VS 2005 linkers, which we don't support).
2021-11-10 16:06:39 +01:00
Rémi Verschelde
b727061ce0
Windows: Fix compilation warnings with GCC 11.2.1
2021-11-10 15:13:05 +01:00
Rémi Verschelde
8a15e404b2
Merge pull request #54463 from RandomShaper/fix_gl3_32bits
2021-11-09 11:55:26 +01:00