1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00
Commit Graph

451 Commits

Author SHA1 Message Date
carsonuderitz@gmail.com
2fc6e11e31 Fix not releasing action when actions are erased 2025-12-12 16:27:47 +01:00
Rémi Verschelde
40c5b2110e Merge pull request #112995 from zedzee37/touch_window_fix
Fix emulated touch events using the incorrect window ID
2025-12-09 17:16:54 +01:00
Pāvels Nadtočajevs
36521091aa Do not show Physical in the special key names. 2025-12-04 11:30:57 +02:00
Thaddeus Crews
825d0fe94a Merge pull request #113418 from Calinou/inputevent-shortcut-physical-unicode-avoid-nested-parentheses
Avoid nested parentheses in physical/Unicode InputEventKey text conversion
2025-12-03 11:42:22 -06:00
David Snopek
308f23f21d Synchronize the names for RequiredParam<T> arguments in header files 2025-12-03 04:14:52 -06:00
Thaddeus Crews
9f76aa3df5 Merge pull request #113282 from dsnopek/required-ptr-get-out-there
Use `RequiredParam`/`RequiredResult` in some high value places
2025-12-02 20:42:53 -06:00
David Snopek
fc92ce3e7f Use RequiredParam/RequiredResult in some high value places 2025-12-02 10:44:12 -06:00
Hugo Locurcio
e483d2e2d1 Avoid nested parentheses in physical/Unicode InputEventKey text conversion
This was visible in tooltips displayed in shortcuts, including in the editor itself.

For example, "Forward (W (Physical))" is now displayed as "Forward (W - Physical)".
2025-12-02 16:58:24 +01:00
Rémi Verschelde
3d585df89f Merge pull request #112762 from Benjamin-Dobell/fix/android/dpad-support
Android: Improve D-pad support for Default Android Gamepad.
2025-12-02 14:16:12 +01:00
madsbangh
3fee7c2464 Fix assertions related to buffer overruns in input_event_codec.cpp 2025-11-21 22:55:52 +01:00
carsonuderitz@gmail.com
ca45ce91b7 fix emulated touch events using the incorrect window id 2025-11-20 15:26:53 -05:00
kobewi
e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
Benjamin Dobell
5ac0a57b32 Android: Improve D-pad support for Default Android Gamepad.
Previously the default gamepad wasn't actually setup to handle
regular D-pad keycode events. Instead it had only been hooked up
to hat inputs. Many bluetooth controllers paired with recent
Android versions fire keycode events for their D-pad.
2025-11-15 00:47:05 +11:00
Thaddeus Crews
52e7b970af Merge pull request #111681 from Nintorch/joypad-led
Add support for setting a joypad's LED light color
2025-11-13 20:52:07 -06:00
Thaddeus Crews
08fb2e61e7 Merge pull request #111503 from JestemStefan/fix_111176
Fix `Input.is_joy_known` response for SDL joypads
2025-11-12 17:26:22 -06:00
Nintorch
a55242747a Add support for joypad LED lights 2025-11-12 06:01:03 +05:00
JestemStefan
3f98a5472d Fix Input.is_joy_known response for SDL joypads 2025-11-11 23:23:46 +01:00
Thaddeus Crews
180ccae934 Merge pull request #111707 from Nintorch/joypad-features
Support adding advanced joypad features
2025-11-11 16:07:56 -06:00
kobewi
98141c3d73 Replace repetitive meta/ctrl condition with a method 2025-11-10 16:23:28 +01:00
Thaddeus Crews
38e20331c8 Merge pull request #107303 from passivestar/close-dialog-action
Add support for closing dialog windows with Cmd+W on macOS
2025-10-22 13:48:36 -05:00
passivestar
979f8fa342 Add support for closing dialog windows with Cmd+W on macOS 2025-10-22 09:51:14 +04:00
marwen.azouzi
6dd5266a0e Removes the need to have a display name for built-in action overrides 2025-10-21 16:45:18 +02:00
Nintorch
7ae67813a1 Support adding advanced joypad features 2025-10-20 19:28:06 +05:00
Thaddeus Crews
60710df3b6 Merge pull request #94047 from KoBeWi/resource_printer
Improve `to_string()` and add it to Resource
2025-10-16 12:48:11 -05:00
kobewi
263a2bdec6 Rework FileDialog shortcuts 2025-10-11 14:37:40 +02:00
kobewi
e6783dbdd1 Improve to_string() and add it to Resource 2025-10-09 00:54:38 +02:00
Thaddeus Crews
6ef2c7b34b Merge pull request #110823 from Calinou/ui-builtin-actions-all-devices
Allow all gamepad devices for built-in `ui_*` input actions
2025-10-07 17:15:00 -05:00
Thaddeus Crews
d1d28c0bcf Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
Lukas Tenbrink
9d44b68867 Remove rw_lock.h and rb_map.h includes from object.h. 2025-10-05 23:29:04 +02:00
Lukas Tenbrink
1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
Hugo Locurcio
0dcf28104d Allow all gamepad devices for built-in ui_* input actions
This allows all controllers to navigate the UI, which enhances
compatibility with PC handhelds when external controllers are connected.

Previously, only the first device was allowed to use `ui_*` actions
out of the box, which means that on a PC handheld, external controllers
couldn't navigate the UI (since the first ID is always the built-in controller).
2025-09-23 17:12:56 +02:00
kobewi
d61a337a70 Improve usage of String.split() vs get_slice() 2025-09-19 16:31:55 +02:00
Thaddeus Crews
1e84bc4d9c Merge pull request #108260 from Silver1063/master
Fix modifier order in keycode string generation
2025-09-18 12:42:20 -05:00
Thaddeus Crews
52a5644b5f Merge pull request #108214 from Nintorch/fix-joypad-vendor-product
Fix `Input.get_joy_info()` regression after the SDL input driver PR
2025-09-01 11:14:12 -05:00
Nintorch
f28acf97d0 Fix Input.get_joy_info() regression
SDL input driver did not have the "xinput_index", "raw_name", "vendor_id" and "product_id" fields for this method and exposed an additional, essentially useless for the users "mapping_handled" field. This commit fixes these issues.
2025-08-29 22:13:40 +05:00
Talkashie
bc7e68dfd1 Typos 2025-08-19 18:32:59 -05:00
Pāvels Nadtočajevs
10fd7163d4 Add methods to check which event first triggered "just pressed/released" state. 2025-08-12 16:25:23 +03:00
风青山
95403207e8 Use EditorUndoRedoManager to track the property changes of the
configured `InputEvent` in the plugin

This allows undo and redo, and can mark in time whether the handled
`InputEvent` resource is edited.

`command_or_control_autoremap` needs to be handled separately, as
its value will change the usage of other properties.
2025-07-27 13:57:16 +08:00
Silver1063
00f5b230be Fix modifier order in keycode string generation
Fix the order in which modifier keys are appended in as_text() and keycode_get_string() to ensure consistent and logical ordering (Ctrl, Alt, Shift, Meta). Refactored keycode_get_string() to use a vector for building the key string, improving readability and maintainability.
2025-07-06 14:23:50 -07:00
风青山
efed435fa3 Fix screen_accum not being reset when it should be in Input::VelocityTrack
Resets `screen_accum` like `accum`.
2025-06-26 20:06:03 +08:00
Geoffroy Warin
88c086d082 Sync controller mappings DB with SDL community repo
Synced with: mdqinc/SDL_GameControllerDB@1849728
2025-06-25 12:42:43 +02:00
Nintorch
0b3496fb4f Add support for SDL3 joystick input driver
Made possible by EIREXE, xsellier and the SDL team.

This commit includes statically linked SDL3 for Windows, Linux and macOS.
The vendored copy of SDL3 was setup to only build the required subsystems
for gamepad/joystick support, with some patches to be able to make it as
minimal as possible and reduce the impact on binary size and code size.

Co-authored-by: Álex Román Núñez <eirexe123@gmail.com>
Co-authored-by: Xavier Sellier <xsellier@gmail.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-06-25 01:28:50 +02:00
Hugo Locurcio
b4477f3f49 Fix action name for ui_colorpicker_delete_preset in built-in InputMap
The old action name is a leftover from a now-reverted PR.
2025-06-13 02:24:34 +02:00
Haoyu Qiu
fa7efd94b3 Fix mixed use of spaces and tabs for indentation 2025-06-07 00:30:26 +08:00
kobewi
c32a031908 Improve auto-translation of Script Editor 2025-06-04 14:41:15 +02:00
Ricardo Sanchez-Saez
457299449d Introduce 'drivers/apple_embedded' abstract platform for code reuse 2025-05-19 15:37:13 -07:00
Thaddeus Crews
5620a215a1 Merge pull request #106021 from Alex2782/fix_xbox_controller_on_android
Fix Xbox Controller on Android
2025-05-16 07:43:09 -05:00
Thaddeus Crews
1c4b660312 Merge pull request #96611 from Dynamic-Pistol/master
Add `PROPERTY_HINT_INPUT_NAME` for use with `@export_custom` to allow using input actions
2025-05-13 16:22:25 -05:00
Yufeng Ying
55a61cbd4a Optimize InputMap::get_actions. 2025-05-12 17:51:27 +08:00
Stuart Carnie
00e1fdec2c MacOS: Embedded window support. 2025-05-06 06:09:05 +10:00