Commit Graph

23 Commits

Author SHA1 Message Date
238bf1b331 Moved the RenderingServer to core. 2023-12-10 19:04:24 +01:00
Ricardo Subtil
723b7390c1 Ensure joy_connection_changed is emitted on the main thread
(cherry picked from commit 1bb73b0689a9cc2731eee63374f07e08b35b6e6a)
2023-08-30 11:14:49 +02:00
puzzud
21d78d77f6 Prevent double input events on gamepad when running through steam input #79706
Co-authored-by: Eoin O'Neill <eoinoneill1991@gmail.com>
2023-08-27 11:47:35 +02:00
ee54ca3808 Ported from godot: Input - fix just pressed and released with short presses
Previously if an action was both pressed and released on the same tick or frame, `is_action_just_pressed()` would return false, resulting in missed input.

This PR separately the timestamp for pressing and releasing so each can be tested independently.

- lawnjelly

63d208d1b0
2023-06-28 12:48:36 +02:00
3331a7ae04 Ported: Augment the InputEvent class with a CANCELED state
The `InputEvent` class currently supports the `pressed` and `released` states, which given the binary nature, is represented by a `bool` field.
This commit introduced the `CANCELED` state, which signals that an ongoing input event has been canceled.
To represent all the states, the `InputEventState` enum is added and the `InputEvent` logic is refactored accordingly.
- m4gr3d
94d6c3dcc6
2023-06-11 10:26:23 +02:00
Fredia Huya-Kouadio
2b79cd7446 Follow up to https://github.com/godotengine/godot/pull/76400 to fix input ANR in the Godot Android editor 2023-06-11 09:25:25 +02:00
Pedro J. Estébanez
1225aa2492 Allow concurrent buffering and dispatch of input events 2023-06-11 09:24:49 +02:00
Pedro J. Estébanez
ac350d6651 Allow concurrent buffering and dispatch of input events 2023-06-10 23:32:44 +02:00
dd5e6b19df Fix warning on clang. 2023-04-16 15:39:48 +02:00
17a4e4b28f Ported: Change message of unknown joypad property from error to warning.
- rsubtil and akien-mga
e814861950
2023-03-12 19:09:39 +01:00
1b0aac6028 Renamed Map to RBMap. 2023-01-15 19:12:50 +01:00
a3f2631d59 Ported: Add double_tap attribute to InputEventScreenTouch
This provides parity with the `InputEventMouseButton` allowing for proper conversion between the two events.
- m4gr3d
be4b07c3e4
2022-11-13 01:29:17 +01:00
Michael Alexsander
a3ed238e40 Port Input.action_press/release() changes 2022-10-08 17:02:11 +02:00
Marcel Admiraal
8e94d451b4 Fix axis mapped to DPad buttons not releasing opposite button 2022-09-16 12:33:18 +02:00
e2d42db711 Also renamed the files. 2022-08-19 21:24:36 +02:00
59f4eb55d9 Ported: Fix mouse speed not changing fast enough
- Uses all accumulated movements when calculating speed
- Discards old accumulated movements
- Sets last mouse speed to zero when there is no movement
- madmiraal
3d96d7d9fb
2022-08-19 02:46:03 +02:00
99e94b08c4 Moved base input related classes to core/input. 2022-08-17 17:02:24 +02:00
3fb2c16ba0 Ported: Input: Re-enable input accumulation disabled by error in 3.4
Input accumulation was implemented and enabled by default in 3.1, and
I don't recall major complaints around it (or bugs were fixed).
In 3.4, #42220 added input buffering and apparently toggled input
accumulation off by mistake.
This led to multiple bug reports about degraded performance on Windows,
or simply unexpected behavior change (see linked issues in #55037).
Fixes #55037.
- akien-mga
d6bcdd18c3
2022-07-29 20:50:00 +02:00
942b6d9938 Ported: Make Input mouse_mode and use_accumulated_input properties - fire-forge, timothyqiu
53c01540d9
2022-07-28 18:54:48 +02:00
KingCakeTheFruity
be66ed9679 Added p_shape check to avoid engine crush
(cherry picked from commit 29a2809d2120bc740f948e4134e839557e689724)
2022-07-26 14:58:57 +02:00
32f148ac0c Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
a1f9614c07 Backported: Fix crash on get index for non-existing string
As _buttons and _axes have both valid string and nullptr.
When iterating over them, if given key exists it will work correctly.
But if given key does not exist, it will end up with
String::operator=(nullptr). As String constructor from nullptr exists, I
use it. - Snowapril - c77b710035
2022-03-20 20:28:50 +01:00
49f8e8c398 Added godot with all my currently used engine modules. 2022-03-15 13:29:32 +01:00