Aman Jain
f579057748
Refactor permissions and command line flags into separate methods
2020-07-09 16:34:08 -04:00
Aman Jain
78e003951a
Utility methods for writing files to Gradle project.
2020-07-09 13:57:15 -04:00
bruvzg
bcc3c72d9c
[macOS] Fix transient windows.
2020-07-09 14:22:56 +03:00
Rémi Verschelde
d629b17291
Merge pull request #40215 from naithar/feature/ios-storyboard-usage-master
...
[4.0] [iOS] Option to use storyboards for launch screens
2020-07-09 08:36:01 +02:00
Sergey Minakov
96e204bb0d
iOS Export: Storyboard custom values
2020-07-07 02:00:08 +03:00
Sergey Minakov
d4c541c25a
iOS Export: add option to use storyboard for launch screen
2020-07-07 01:46:26 +03:00
Sergey Minakov
7b64f2df50
iOS Export: use relative path for res:// files
2020-07-06 00:56:29 +03:00
Rémi Verschelde
c2a0bfa95b
Merge pull request #40111 from DanielZTing/master
...
Fix opening URLS with special characters in macOS
2020-07-05 00:51:13 +02:00
Rémi Verschelde
8ccb1cec91
Merge pull request #40084 from bruvzg/macos_seamless_scaling
...
[macOS] Implement seamless display scaling.
2020-07-04 10:51:09 +02:00
Rémi Verschelde
9828fcc01a
Merge pull request #40105 from Logharaa/master
...
Stop looping as soon as the first window that has focus is found
2020-07-04 09:57:14 +02:00
bruvzg
df968d577a
[macOS] Implement seamless display scaling.
2020-07-04 10:36:33 +03:00
Daniel Ting
b8e6ff9a7f
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.
2020-07-03 23:00:48 -05:00
Gaël
6c76639c40
Break loop when the first focused window is found
2020-07-04 01:57:16 +02:00
Rémi Verschelde
73fddc623b
Merge pull request #39888 from nekomatata/windows-create-window-error
...
Fix errors when creating windows on Windows
2020-07-04 01:41:43 +02:00
Rémi Verschelde
c020eea184
Merge pull request #40092 from hinlopen/remove-find-last
...
Remove String::find_last (same as rfind)
2020-07-04 01:38:01 +02:00
Juan Linietsky
14263d3d0d
Improve the situation of DND on X11
2020-07-03 12:09:22 -03:00
Stijn Hinlopen
929b98d24b
Remove String::find_last (same as rfind)
2020-07-03 15:26:22 +02:00
Rémi Verschelde
aa564739dd
Merge pull request #40074 from reduz/fix-fullscreen
...
Fix fullscreen flag on Windows, closes #37588
2020-07-03 09:23:44 +02:00
Rémi Verschelde
64aa25b2e5
Merge pull request #40050 from naithar/feature/ios-gdnative-master-2
...
[4.0] Add support of iOS's dynamic libraries to GDNative
2020-07-03 07:48:13 +02:00
Juan Linietsky
b14be5f271
Fix fullscreen flag on Windows, closes #37588
2020-07-02 22:09:17 -03:00
bruvzg
a9e341cff3
[macOS] Implement confined mouse mode.
2020-07-02 17:34:58 +03:00
Sergey Minakov
864224a5c1
iOS Export: Updated Info.plist. Framework embedding. Fixes for search paths
2020-07-02 12:56:11 +03:00
Sergey Minakov
eef732342b
iOS Export: turn .dylib into .framework on export
2020-07-02 12:56:05 +03:00
Rémi Verschelde
3fb5faaceb
Merge pull request #40018 from Faless/js/more_improvements_4.0
...
HTML5 fixes, refactor, audio fallback, fixed FPS.
2020-07-02 07:22:43 +02:00
Juan Linietsky
0b7bc83fe3
Add a focus out timeout for X11 to less events of this type are received
2020-07-01 16:14:46 -03:00
Fabio Alessandrelli
7a5e10b8a9
Use dummy driver when JS AudioContext is unavailable.
2020-07-01 17:16:13 +02:00
Fabio Alessandrelli
1a637b07b1
Limit FPS in JS by skipping iterations.
2020-07-01 17:16:13 +02:00
Fabio Alessandrelli
07d4513886
[JS] Check canvas size each loop, force redraw.
...
Fix compatibility issues, achieve smoother resizing.
2020-07-01 17:16:13 +02:00
Fabio Alessandrelli
a1c4c1d318
More static methods in DisplayServerJavaScript.
...
Were static functions in cpp file, polluting global namespace.
2020-07-01 17:16:03 +02:00
Rémi Verschelde
5c9ee93f3e
Merge pull request #39788 from bruvzg/macos_apple_silicon
...
[macOS] Add support for the Apple Silicon (ARM64) build target.
2020-07-01 16:45:23 +02:00
Rémi Verschelde
9000e59650
Merge pull request #40016 from akien-mga/environment-code-cleanup
...
Environment: Refactor code for readability + more
2020-07-01 16:28:48 +02:00
Rémi Verschelde
372136fe75
Environment: Refactor code for readability + more
...
- 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.
2020-07-01 14:44:45 +02:00
Juan Linietsky
239942cfef
Ensure embedded mode works again
...
Also implemented application in/out notifications in X11.
2020-07-01 09:27:43 -03:00
Fabio Alessandrelli
fd92270b0a
Refactor canvas ID and locale handling.
2020-07-01 13:10:05 +02:00
Fabio Alessandrelli
5b1cc2d1fc
Fix FS error on JS startup due to existing folder.
2020-07-01 13:10:05 +02:00
bruvzg
a07578592b
[macOS] Add application become/resign active notifications.
2020-06-30 17:59:30 +03:00
Juan Linietsky
438c380458
Add a separate application focus/in notification out from Window focus notification.
2020-06-30 10:40:06 -03:00
bruvzg
accae11fe3
[macOS export] Set correct external file attributes (Unix mode), and creation time.
2020-06-30 10:16:02 +03:00
Rémi Verschelde
524f061c01
X11: Ensure XGetWindowProperty data gets freed
...
And cleanup includes a bit.
2020-06-29 13:32:21 +02:00
bruvzg
00299f15b4
[macOS] Add support for the Apple Silicon (ARM64) build target.
2020-06-29 12:33:51 +03:00
Fredia Huya-Kouadio
2d53b8173e
Fix the logic to enable focus awareness
2020-06-27 16:43:08 -07:00
PouleyKetchoupp
1043576ff3
Fix errors when creating windows on Windows
...
Detecting the case where WM_SIZE is received during the window creation.
There's no need to call window_resize on the Vulkan context.
Also creating a WindowData entry early enough to avoid storing a
separate WindowData wrongly associated to INVALID_WINDOW_ID.
Fixes #39199
2020-06-27 18:26:34 +02:00
Fredia Huya-Kouadio
175d43738a
Enable the ability to use Godot as a subview within an Android app
2020-06-25 19:52:40 -07:00
Rémi Verschelde
8f5005b3eb
Merge pull request #39779 from naithar/feature/ios-modules-master
...
Enable iOS modules and fix missing symbols errors (4.0)
2020-06-24 22:49:39 +02:00
Poq Xert
4c0b077faa
Updated purchase receipt suitable for sending to apple verification server
...
(cherry picked from commit bd71925726
)
2020-06-24 17:15:56 +02:00
Sergey Minakov
488879f52b
Export: Fix iOS enabling push notifications capability
2020-06-23 12:48:44 +03:00
Sergey Minakov
090b9fec20
SCons: Enable modules for iOS
2020-06-23 12:48:44 +03:00
Fredia Huya-Kouadio
206cbd960b
Follow up cleanup for the godotpayment project module
2020-06-22 12:53:25 -07:00
Rémi Verschelde
d808697760
Merge pull request #39751 from bruvzg/mingw_build_fix
...
Fix MinGW build (use uninitialized `ofs` variable introduced in 39701).
2020-06-22 13:07:14 +02:00
bruvzg
439c97e0ff
Fix use uninitialized `ofs` variable introduced in 39701.
2020-06-22 13:13:22 +03:00
bruvzg
fc1d1c3557
[Windows] Prevent overwriting old cursor handle on multiple mouse_mode changes, ensure mouse_mode is set before `cursor_set_shape` is called to restore cursor.
2020-06-22 13:05:18 +03:00
Rémi Verschelde
6869d5d190
Merge pull request #39745 from timoschwarzer/remove-godot-payment-plugin-4
...
Remove GodotPayment android plugin
2020-06-22 12:01:27 +02:00
bruvzg
7a250b579f
macOS, prevent multiple CGDisplayHideCursor calls unpaired with CGDisplayShowCursor.
2020-06-22 11:38:43 +03:00
Timo Schwarzer
83a966f0d8
Remove GodotPayment android plugin
...
This is now available in a separate repository
at https://github.com/godotengine/godot-google-play-billing
2020-06-22 09:21:05 +02:00
Rémi Verschelde
efcc508ee5
Move Haiku platform port to external repository
...
The Haiku port now resides at:
https://github.com/godotengine/godot-haiku-platform
While we're happy to support as many Free and Open Source platforms as we can,
we need to put the main focus on the platforms that we can reasonably maintain,
and for Haiku we have been lacking maintainers ever since the port was first
merged in 2015.
The Haiku code has not been compiling and much less working at least since the
release of Godot 3.0, and while some attempts have been made at fixing things,
it's still not functional today in the `3.2` branch (and much less in `master`,
understandably).
Having it in an external repository should hopefully enable Haiku contributors
to fix issues in their own time, and possibly tag versions compatible with
past Godot releases once they are ready.
2020-06-20 17:59:41 +02:00
Rémi Verschelde
ea30d12204
Merge pull request #39701 from BastiaanOlij/fix_joystick_sliders
...
Fix missing slider joystick handling on Windows
2020-06-20 11:54:39 +02:00
Rémi Verschelde
79b77f8357
Merge pull request #39700 from nekomatata/osx-export-zip-fix
...
Set proper file type attribute for OSX zip export
2020-06-20 11:09:56 +02:00
Bastiaan Olij
aa01b327d6
Fix missing slider joystick handling on Windows
2020-06-20 19:03:15 +10:00
PouleyKetchoupp
4501771fd8
Set proper file type attribute for OSX zip export
...
The missing file type in file attributes was causing the file to lose
executable permissions when unzipped with some softwares.
2020-06-20 10:04:18 +02:00
Rémi Verschelde
35414f1dec
Merge pull request #39053 from timoschwarzer/static-assert-variant-arg-max
...
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-06-19 23:51:22 +02:00
Rémi Verschelde
3e07080942
Merge pull request #39427 from hcmlax/shortcut_issue_39351
...
fixed issue where shortcut doesn't work if alt is pressed before shift
2020-06-19 23:47:49 +02:00
Rémi Verschelde
08ef0aab16
Export: Rename 'Windows Universal' to 'UWP'
...
It's otherwise too easy to be confused between 'Windows Desktop' (Win32)
and 'Windows Universal' (UWP).
2020-06-19 16:31:28 +02:00
Hugo Locurcio
fdb89a3f9a
Rename "Identifier" to "Bundle Identifier" in macOS/iOS export presets
...
"Bundle Identifier" is more well-understood among macOS and iOS
developers and is less ambiguous.
This is a slight breaking change as export presets will need to be
updated to account for this change.
See https://github.com/godotengine/godot-docs/pull/3295 .
2020-06-19 09:59:38 +02:00
unknown
d191a8b9f8
adding check for syskeydown on control and alt
2020-06-18 14:36:22 -07:00
Rémi Verschelde
fa01e666d2
Merge pull request #39542 from Ev1lbl0w/feature/kill-pid
...
Allow Godot to kill its own PID
2020-06-16 20:49:00 +02:00
Rémi Verschelde
60ba9914f3
Merge pull request #39579 from m4gr3d/provide_activity_to_godot_plugin_constructor_master
...
Clean up the GodotPlugin public API
2020-06-16 20:45:34 +02:00
Fredia Huya-Kouadio
6daf9b78af
Clean up the `GodotPlugin` public API.
2020-06-16 09:25:09 -07:00
Rémi Verschelde
4b5b60de85
Merge pull request #39189 from touilleMan/issue-38925
...
Unify OS.get_system_time_* and OS.get_unix_time
2020-06-15 23:57:16 +02:00
Rémi Verschelde
d3c10e8dd6
Merge pull request #39457 from bruvzg/kbd_layouts
...
Add keyboard layout enumeration / set / get functions.
2020-06-15 11:10:34 +02:00
Rémi Verschelde
2db9c13798
Merge pull request #39436 from bruvzg/macos_export_notarization
...
[macOS export] Add notarization support.
2020-06-15 11:04:47 +02:00
Rémi Verschelde
6fa2a5ac14
Merge pull request #39537 from Faless/js/fs_sync_iteration
...
Immediately run first iteration after JS FS sync.
2020-06-14 22:57:32 +02:00
Fabio Alessandrelli
5c75cb0133
Immediately run first iteration after JS FS sync.
...
Which is now run inside an animation frame.
This avoid a 1 frame black screen when setting up the canvas.
2020-06-14 16:04:45 +02:00
bruvzg
92352b1c23
Add keyboard layout enumeration / set / get functions (macOS, Windows, Linux/X11), remove latin variant function.
2020-06-13 11:02:00 +03:00
Aaron Franke
068054002d
Simplify some code in platform/uwp/export
2020-06-11 17:19:45 -04:00
Rémi Verschelde
c4dd866a15
Merge pull request #38958 from lawnjelly/time_overflow_4
...
Fix overflow condition with QueryPerformanceCounter
2020-06-11 09:38:44 +02:00
bruvzg
f5c856ea40
macOS export, add notarization support and id / signing / notarization config check.
2020-06-10 15:58:30 +03:00
Rémi Verschelde
f54eda121d
Merge pull request #39304 from m4gr3d/enable_focus_awareness
...
Add support for focus awareness
2020-06-05 12:42:21 +02:00
Fredia Huya-Kouadio
2bf1f8e4b3
Add support for focus awareness
2020-06-04 15:49:55 -07:00
Fabio Alessandrelli
0a35b97b62
Swtich HTML5 key detection from keyCode to code.
...
The value of this, does not include the layout.
The code has extra logic to map the unicode value to our keylist,
supporting ASCII and Latin-1.
Also add support for `physical_keycode` in HTML5 platform.
2020-06-04 21:15:05 +02:00
Marcus Brummer
21263a65a9
Check if the specified Android release keystore exists
2020-06-04 13:37:14 +02:00
Rémi Verschelde
c47a6f6325
Merge pull request #39060 from madmiraal/fix-38869
...
Update Windows GUID to SDL uid conversion.
2020-06-04 11:40:57 +02:00
PouleyKetchoupp
be22a1f9bc
Fix inconsistent error messages with Android custom export templates
2020-06-01 23:13:31 +02:00
Emmanuel Leblond
c6de3872f9
Remove OS.get_system_time_secs/get_system_time_msecs and change OS.get_unix_time return type to double
2020-05-31 14:19:31 +02:00
Marcel Admiraal
d04cbbd76b
Update OSX GUID to SDL uid conversion.
...
Co-authored-by: John Wakley <johncwakley@users.noreply.github.com>
2020-05-30 17:38:39 +01:00
Marcel Admiraal
bc49d34123
Add dinput nullptr checks.
2020-05-30 13:59:30 +01:00
Marcel Admiraal
97a529b1d8
Do not probe joypads if DirectInput cannot be initialized.
2020-05-29 12:07:07 +01:00
volzhs
c227733bd8
Add missing consumePurchase plugin method for GodotPayment
2020-05-28 22:48:48 +09:00
Hugo Locurcio
fe09b4d2b3
Tweak the DirectInput initialization failure message
...
This closes #36662 .
2020-05-28 09:45:17 +02:00
Fredia Huya-Kouadio
c948d25b6e
Validate that `Use Custom Build` is enabled when `Plugins` are selected
...
Remove `GodotPayment` from the default build template
2020-05-27 12:07:53 -07:00
Rémi Verschelde
7b7b872d94
Merge pull request #39080 from m4gr3d/fix_emit_signal
...
Use compile-time constant for the size of the signal parameters
2020-05-27 13:05:32 +02:00
Fredia Huya-Kouadio
63286ebba4
Use compile-time constant for the size of the signal parameters
2020-05-27 03:40:26 -07:00
Fredia Huya-Kouadio
75100e5644
Provide the ability for clients of the Godot library to add their own command line arguments
2020-05-27 02:13:52 -07:00
bruvzg
ef1a305e50
Ignore invalid tablet driver name, when non are available.
2020-05-26 21:03:45 +03:00
Rémi Verschelde
24ad4894cc
Merge pull request #39050 from timoschwarzer/google-play-billing-4.0
...
(4.0) Re-implement GodotPayment Android plugin using the Google Play Billing library
2020-05-26 15:34:06 +02:00
Marcel Admiraal
a833db80d9
Update Windows GUID to SDL uid conversion.
2020-05-26 12:46:42 +01:00
Timo Schwarzer
4b00bf8e83
Re-implement GodotPayment Android plugin using the Google Play Billing library
2020-05-25 22:24:17 +02:00
Rémi Verschelde
242b715144
Merge pull request #38996 from mbrlabs/android-plugin-fix
...
Perform a clean Gradle build if android plugins changed
2020-05-25 22:18:41 +02:00
Rémi Verschelde
072646f5dd
Merge pull request #39047 from m4gr3d/fix_emit_signal
...
Fix parameters passing when emitting signal
2020-05-25 22:13:49 +02:00
Timo Schwarzer
05b32fc01d
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-05-25 21:55:03 +02:00
Fredia Huya-Kouadio
bf76d2afcf
Stop ignoring hidden files and directories in the `assets` directory
2020-05-25 12:03:35 -07:00
Fredia Huya-Kouadio
e7e736c03b
Fix parameters passing when emitting signal
...
The issue was caused because we were using variables local to the `for` loop block.
2020-05-25 11:50:36 -07:00
Marcus Brummer
abd66c1bb0
Perform a clean Gradle build if android plugins changed
...
Fixes #38986
2020-05-25 19:18:02 +02:00
Fabio Alessandrelli
57bdb4cc35
Fix JS audioContext parameters.
...
Were not passed along correctly.
`latencyHint` is supposed to be in seconds, not milliseconds.
2020-05-25 15:33:19 +02:00
Rémi Verschelde
3ecdc27f49
Merge pull request #39004 from nekomatata/android-reset-surface
...
Proper surface reset when resuming app on Android
2020-05-24 22:31:03 +02:00
Rémi Verschelde
926d6c1082
Merge pull request #39007 from nekomatata/android-object-id-long
...
Use long instead of int for object id in Android java wrapper
2020-05-24 22:30:00 +02:00
PouleyKetchoupp
b987677cc0
Proper surface reset when resuming app on Android
...
Just re-creating the window instead of restarting the app entirely.
2020-05-24 20:42:21 +02:00
PouleyKetchoupp
39f59786fa
Use long instead of int for object id in Android java wrapper
...
Using int for 64-bit values might cause issues with objects not found
in ObjectDB when the id is truncated.
2020-05-24 13:26:18 +02:00
Rémi Verschelde
3be9c74d8b
Merge pull request #38951 from bruvzg/win_ink_block_mm_4
...
Block WM_MOUSEMOVE during Windows Ink pen handling.
2020-05-22 14:34:20 +02:00
lawnjelly
db9fa88160
Fix overflow condition with QueryPerformanceCounter
...
The previous code for OS_Windows::get_ticks_usec() multiplied the tick count by 1000000 before dividing by ticks_per_second. The ticks is counted in a 64 bit integer and is susceptible to overflow when a machine has been running for a long period of time (days) with a high frequency timer.
This PR separates the overall calculation into one for seconds and one for the remainder, removing the possibility of overflow due to the multiplier.
2020-05-22 12:46:35 +01:00
bruvzg
b08b027a9a
Block WM_MOUSEMOVE during Windows Ink pen handling.
2020-05-22 10:44:47 +03:00
GuidoRevers
cf20c0343f
Fix segmentation fault when using context_vulkan after memdelete context_vulkan
2020-05-21 20:38:58 +02:00
Rémi Verschelde
1d573969c0
Merge pull request #38874 from bruvzg/tab_drv_sel_40
...
[Windows] Add tablet driver selection.
2020-05-20 13:58:20 +02:00
Rémi Verschelde
aec07538f4
Merge pull request #38309 from SkyLucilfer/AndroidLineEdit
...
Fix Android LineEdit editing bugs
2020-05-20 11:45:59 +02:00
bruvzg
d0b5174b6a
[Windows] Add tablet driver selection.
2020-05-20 09:37:32 +03:00
bruvzg
cac399a829
[Windows] Add quotes only to the command line arguments with special characters.
2020-05-19 16:34:15 +03:00
Rémi Verschelde
ca3192d18a
Style: Fix unnecessary semicolons that confused clang-format
2020-05-19 11:24:58 +02:00
Rémi Verschelde
74b5d6839a
Merge pull request #33447 from bruvzg/macos_zip_sign
...
macOS add signing of DMG and ZIPed export
2020-05-19 10:30:26 +02:00
Fredia Huya-Kouadio
6e2988f26a
Update the permission string for the Oculus hand tracking to match the latest api update
2020-05-18 15:28:18 -07:00
Rémi Verschelde
9844cd45e3
Merge pull request #38820 from ericrybick/master
...
Fix certain characters being recognized as special keys on Windows when using the us international layout
2020-05-18 16:33:18 +02:00
Eric Rybicki
e460456e60
Fix certain characters being recognized as special keys in Windows when using the us international layout
2020-05-18 14:47:54 +02:00
Fabio Alessandrelli
90c7102b51
Move mix_rate, ouput_latency to AudioDriverManager
...
Each driver used to define the (same) project settings values
`audio/mix_rate` and `audio/output_latency`, but the setting names are
not driver specific.
Overriding is still possible via platform tags.
2020-05-18 13:02:06 +02:00
Fabio Alessandrelli
245c179bd3
AudioDriverJavaScript now compute buffer size.
...
Based on mix rate and expected latency.
2020-05-18 13:02:06 +02:00
Fredia Huya-Kouadio
14e6696c8e
Implementation of the Godot Android Plugin configuration file
2020-05-17 11:11:26 -07:00
SkyJJ
cc473b948f
Fix Android LineEdit editing bugs
2020-05-16 17:55:27 +02:00
HaSa1002
434bf0572c
Fix input event being dispatched multiple times on Windows
2020-05-16 16:17:50 +02:00
bruvzg
08e80ccd99
Fix popup positions on multiple screens (with same scaling only).
2020-05-16 14:11:43 +03:00
Rémi Verschelde
d999071edf
Merge pull request #37924 from thebestnom/migrate-to-androidX
...
Android: Migrate deprecated support library to AndroidX
2020-05-16 09:03:17 +02:00
bruvzg
4bec713b8c
macOS signing improvements: allow signed app exporting as ZIP, sign DMG after exporting.
2020-05-15 09:38:59 +03:00
Rémi Verschelde
0ee0fa42e6
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14 21:57:34 +02:00
Rémi Verschelde
07bc4e2f96
Style: Enforce separation line between function definitions
...
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 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
0be6d925dc
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
...
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 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
710b34b702
Style: Fix missing/invalid copyright headers
2020-05-14 16:54:54 +02:00
Rémi Verschelde
1f6f364a56
Port member initialization from constructor to declaration (C++11)
...
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.
2020-05-14 10:01:56 +02:00
Ev1lbl0w
75ce45440a
Allow Godot to kill it's own PID
2020-05-13 16:48:14 +01:00
Marcel Admiraal
e7fee711b3
Update game controller enums.
2020-05-13 10:33:32 +01:00
Fabio Alessandrelli
3097c2da96
Add WebSocket debugger, use it for Javascript.
2020-05-12 15:09:13 +02:00
Rémi Verschelde
32133a11b5
Merge pull request #38386 from reduz/new-lightmapper
...
New GPU lightmapper
2020-05-11 13:45:48 +02:00
Juan Linietsky
1bea8e1eac
New lightmapper
...
-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)
2020-05-10 15:59:09 -03:00
Fabio Alessandrelli
6a49b83e39
Add drop files function
2020-05-10 18:22:48 +02:00
Fabio Alessandrelli
d2eef39731
Fix Closure compiler build, python style.
...
Move copyToFS into utils.js library included with '--pre-js'.
2020-05-10 18:22:48 +02:00
Fabio Alessandrelli
7411e7fd37
DisplayServerJavaScript implementation.
2020-05-10 18:22:48 +02:00
Fabio Alessandrelli
ee99cd42d5
[HTML5] Locale, input fix, context, exit.
...
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)
2020-05-10 18:19:23 +02:00
thebestnom
d0ced7a481
Android: Migrate deprecated support library to AndroidX
2020-05-10 19:03:44 +03:00
Rémi Verschelde
69de7ce38c
Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine
...
Part of #33027 .
2020-05-10 13:13:54 +02:00
Rémi Verschelde
e956e80c1f
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
...
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.
2020-05-10 13:12:16 +02:00
Rémi Verschelde
03b13e0c69
Style: Add missing copyright headers
2020-05-10 13:12:16 +02:00
Rémi Verschelde
44db69a7da
Merge pull request #38561 from bruvzg/wintab_extra_mm_events
...
WinTab: Make movement smoother and handle pressure/tilt changes when cursor is not moving.
2020-05-08 12:19:55 +02:00
bruvzg
78c80de738
WinTab: Adds extra "mouse move" events to make movement smoother and correctly handle pressure/tilt change when cursor is not moving.
2020-05-08 10:56:42 +03:00
Eric M
97e77bcd19
Added mapping for KEY_MENU to VK_APPS (0x5d) so context menu's triggered by the keyboard menu button work
2020-05-08 11:22:21 +10:00
bruvzg
ba85db5a79
Remove WinTab error message.
2020-05-07 15:51:19 +03:00