Fredia Huya-Kouadio
be4b07c3e4
Add double_tap
attribute to InputEventScreenTouch
...
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
2022-10-20 11:56:11 -07:00
lawnjelly
d60eae3dbc
Fix uninitialized data reads in Input
...
Found by Valgrind.
2022-09-06 14:21:01 +01:00
Rémi Verschelde
4196cc0c00
Merge pull request #64445 from timothyqiu/action-completion-3.x
...
[3.x] Fix action name completion for `Input.get_{axis,vector}`
2022-09-01 08:20:40 +02:00
Fredia Huya-Kouadio
9910d4681d
Additional fixes to the Android get_current_dir()
implementation.
2022-08-30 10:08:30 -07:00
Pedro J. Estébanez
29e235b341
Add FileAccess::get_access_type()
...
(cherry picked from commit 8c6b2fbb90
)
2022-08-29 15:44:29 +02:00
Haoyu Qiu
e6dd71d227
Fix action name completion for Input.get_{axis,vector}
2022-08-15 23:44:11 +08:00
Rémi Verschelde
6eee83579a
Merge pull request #64101 from timothyqiu/subsecond
2022-08-08 16:31:49 +02:00
Rémi Verschelde
7dc8ec0c61
Merge pull request #63643 from aaronfranke/3.x-mouse-mode-ch
2022-08-08 14:36:45 +02:00
Haoyu Qiu
1be078ebcb
Fix Time.get_unix_time_from_system() not including msecs
2022-08-08 20:31:51 +08:00
Rémi Verschelde
0bed7ea63f
Merge pull request #61316 from bruvzg/tts_3x
...
[3.x] Backport text-to-speech support.
2022-08-05 23:45:51 +02:00
Rémi Verschelde
daa5b542b4
Merge pull request #56765 from madmiraal/fix-45592-2-3.x
...
[3.x] Fix mouse speed not changing fast enough
2022-08-05 22:37:44 +02:00
Rémi Verschelde
26762a71b6
Merge pull request #58537 from winterpixelgames/feature/virtual-keyboard-types-3.x
2022-08-05 19:37:13 +02:00
Fabio Alessandrelli
4e33610fb0
[Core] Use std type traits to check operations triviality.
...
(cherry picked from commit 6f02183f8c
)
2022-08-04 15:20:28 +02:00
Rémi Verschelde
751b16a285
File: Re-add support to skip CR (\r
) in File::get_as_text
...
This was removed in #63481 , and we confirmed that it's better like this,
but we add back the possibility to strip CR as an option, to optionally
restore the previous behavior.
For performance this is done directly in `String::parse_utf8`.
Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR.
Supersedes #63717 .
(cherry picked from commit 1418f97c70
)
2022-08-01 00:40:55 +02:00
Aaron Franke
0d6e2d1090
Add MOUSE_MODE_CONFINED_HIDDEN to MouseMode enum
2022-07-29 13:46:04 -05:00
pattlebass
fb7ecc748f
[3.x] HTML5: Add support for Input.vibrate_handheld()
2022-07-28 13:20:05 +03:00
Rémi Verschelde
818f1eed31
Code quality: Fix header guards consistency
...
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
Fredia Huya-Kouadio
aab26ad7d2
Address slow copy performance when using the FileAccessFilesystemJAndroid
implementation.
...
Read/write ops for this implementation are done through the java layer via jni, and so for good performance, it's key to avoid numerous repeated small read/write ops due the jni overhead.
The alternative is to allocate a (conversatively-sized) large buffer to reduce the number of read/write ops over the jni boundary.
2022-07-21 08:21:12 -07:00
Rémi Verschelde
101cbe5d5b
Merge pull request #62723 from hansemro/eraser-detect-3.x
2022-07-15 00:13:15 +02:00
Brian Semrau
ce24b48e50
Add support for multiple virtual keyboard types
2022-07-07 14:22:28 -04:00
Hansem Ro
193d5c11f3
[3.x, macOS, Windows, X11] Add stylus inverted/eraser support to InputEventMouseMotion event
2022-07-04 16:12:11 -07:00
Estelle Linkpy Reid
7a2d3b04a5
Corrected InputEventKey::as_text to return a non-empty string for physical keys.
2022-07-02 15:34:15 +02:00
bruvzg
6489fe890e
Backport text-to-speech support.
2022-07-01 11:04:50 +03:00
ne0fhyk
24e3b3b88d
Add full support for Android scoped storage.
...
This was done by refactoring directory and file access handling for the Android platform so that any general filesystem access type go through the Android layer.
This allows us to validate whether the access is unrestricted, or whether it falls under scoped storage and thus act appropriately.
2022-06-26 16:53:02 -07:00
bruvzg
11a7997a67
[Windows, 3.x] Add support for handling network share paths.
2022-06-13 09:24:35 +03:00
FireForge
53c01540d9
Make Input mouse_mode and use_accumulated_input properties
...
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-06-10 17:33:12 +08:00
Aaron Franke
0470392930
[3.x] Improve architectures in OS::has_feature and make it work on MSVC
2022-06-05 23:16:13 -05:00
Nicholas Huelin
5cedb395dc
Fix inconsistent naming in Time
...
(cherry picked from commit 8409d92282
)
2022-05-16 15:58:36 +02:00
mdavisprog
53fb0440d3
Add OS::is_process_running function.
...
Adds the is_process_running function to the native OS class and exposes it to script.
This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.
Documentation is updated to reflect new API function.
(cherry picked from commit f3c1232c59
)
2022-05-05 15:02:46 +02:00
lawnjelly
df7fab51a3
Physics Interpolation - Flush transforms after physics tick
...
Leftover transforms from the physics tick were being flushed during idle, which was causing problems for physics interpolation.
This PR flushes the transforms at the end of the physics tick when physics interpolation is active.
2022-05-04 20:30:46 +01:00
Rémi Verschelde
d8e702b010
Merge pull request #60552 from madmiraal/implement-3466-3.x
...
[3.x] Add a method for obtaining display cutouts on Android
2022-05-02 07:58:05 +02:00
bruvzg
bea7c9be5d
[3.x] Improve embedded PCK loading and exporting.
2022-04-28 11:11:48 +03:00
laws65
6aac042faa
Proper validation of negative values in datetime strings and datetime dicts
...
(cherry picked from commit cf9fc0b936
)
2022-04-27 12:22:49 +02:00
Oğuzhan Eroğlu
fd329d19e8
Quick fix: Crash when parsing invalid datetime string #60189
...
(cherry picked from commit 2b8eb126b4
)
2022-04-27 12:22:26 +02:00
Haoyu Qiu
d088128b43
Remove duplicate editor settings definitions
2022-04-27 15:26:46 +08:00
Adam Scott
7749346f48
Use ThreadWorkPool instead of thread_process_array in NavMap
...
Port ThreadWorkPool to 3.x
2022-04-26 09:18:46 -04:00
Marcel Admiraal
ec2270b88f
Add a method for obtaining display cutouts on Android
2022-04-26 13:52:33 +02:00
RedHeadphone
b6968ab060
validate input in Time.get_datetime_string_from_dict()
...
format fix
better fix to handle ERR_FAIL_COND_V_MSG return data type
(cherry picked from commit 7e35af3dc3
)
2022-04-14 21:38:27 +02:00
keptsecret
c69689ab5a
fix unable to change directory in user access mode
2022-04-03 11:22:01 -04:00
Rémi Verschelde
3c0d32562b
Merge pull request #59606 from m4gr3d/fix_low_processor_mode_3x
...
[3.x] Fix flickering issues with low processor mode on Android
2022-03-29 22:51:32 +02:00
Fredia Huya-Kouadio
8ca32d1727
Fix flickering issues with low processor mode on Android
2022-03-29 12:17:25 -07:00
Haoyu Qiu
50ba2d3051
Fix crash when exporting projects with shared libraries
...
(cherry picked from commit 680bcef825
)
2022-03-28 23:48:03 +02:00
Rémi Verschelde
9e44fb166d
Merge pull request #59344 from madmiraal/fix-57943-3.x
...
[3.x] Ensure minimum modifiers are pressed when matching actions
2022-03-20 11:27:20 +01:00
Marcel Admiraal
88c723c33c
Ensure minimum modifiers are pressed when matching actions
2022-03-20 08:08:40 +00:00
Bartłomiej T. Listwon
8db39b82ea
Include platform_config.h in thread.cpp and thread.h
...
(cherry picked from commit 6c6291b84f
)
2022-03-17 13:03:52 +01:00
ConteZero
2ff0735329
Added primary clipboard for Linux
2022-03-14 15:28:36 +01:00
Aaron Franke
3040285b27
Add offset string from minutes conversion method to Time singleton
...
(cherry picked from commit 55aabb8b06
)
2022-03-12 14:44:23 +01:00
Hugo Locurcio
cec7c908ca
Add get_screen_refresh_rate()
to OS
...
This method can be used to get the refresh rate of a given screen.
It is supported on Windows, macOS, Linux, Android and iOS (but not
HTML5).
2022-03-10 22:10:48 +01:00
Hugo Locurcio
7f9e974a8b
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
`VisualServer.get_video_adapter_name()` and
`VisualServer.get_video_adapter_vendor()` for annotating benchmarks
and automatic graphics quality configuration.
2022-02-16 18:39:02 +01:00
Rémi Verschelde
689f59dca0
Merge pull request #53463 from lawnjelly/vital_redraws
...
Add editor vital redraws only option
2022-02-04 21:42:49 +01:00