Commit Graph

24 Commits

Author SHA1 Message Date
Rémi Verschelde bda8e30e80
Merge pull request #83248 from pkowal1982/event_configuration
(Un)Fold event categories by double click
2024-05-29 11:19:35 +02:00
kobewi 413c11357d Use Core/Scene stringnames consistently 2024-05-13 23:41:07 +02:00
Paweł a5916deb13 (Un)Fold event categories by double click 2024-05-11 20:38:46 +02:00
A Thousand Ships b4c6cc7d82
[Core] Add case-insensitive `String::containsn` 2024-05-08 12:48:01 +02:00
bruvzg 68e4ead9ad
Fix input map shortcuts incorrectly edited on cancel. 2024-04-18 08:22:39 +03:00
Haoyu Qiu 8cd1ebbd6d Fix unexpected auto translation of Tree content 2024-03-18 09:31:00 +08:00
Robert Yevdokimov 690fd15356 Remove unnecessary focus methods and directly bind to 'set_close_on_escape' 2024-02-02 09:03:38 -05:00
Mel Collins 8406e60522 Add InputEventKey.location to tell left from right
This adds a new enum `KeyLocation` and associated property
`InputEventKey.location`, which indicates the left/right location of key
events which may come from one of two physical keys, eg. Shift, Ctrl.

It also adds simulation of missing Shift KEYUP events for Windows.
When multiple Shifts are held down at the same time, Windows natively
only sends a KEYUP for the last one to be released.
2024-01-26 14:42:28 +01:00
Yuri Sizov 95b27fe8c7 Reorganize code related to editor theming
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.

Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.

All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
Hugo Locurcio 8e2f3191e7
Add input action name to window title in input map editor 2023-12-18 01:42:59 +01:00
Yuri Sizov 44ec0d19d8 Fix size and visuals of the InputEventConfigurationDialog 2023-12-05 16:05:51 +01:00
kobewi 6de34fde27 Add EditorStringNames singleton 2023-09-03 19:58:18 +02:00
bruvzg c3cb846f72
[Input Map] Generate missing values instead of disabling options. 2023-06-06 10:55:00 +03:00
Danil Alexeev 9fbf24fd5c
Fix `InputEventConfigurationDialog` modifies original event 2023-03-13 15:03:35 +03:00
kobewi be03c79001 Fix wrong font in Event Configuration 2023-02-16 18:19:28 +01:00
Rémi Verschelde 312011fade
Fix various typos with codespell
And include #72377.

Co-authored-by: Wiktor Kocielski <withaust@gmail.com>
2023-01-30 14:22:47 +01:00
Hugo Locurcio 6f6914b29d
Fix typos in input action editor key type names
This also makes those strings localizable.
2023-01-27 16:09:00 +01:00
bruvzg daad4aed62
Cleanup and unify keyboard input.
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes.
- Unify IME behaviour, add inline composition string display on Windows and X11.
- Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events.
- Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS.
- Add support for media key handling on macOS.

Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-23 15:08:12 +02:00
Rémi Verschelde 5b1df48c6c
Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
Eric M 3bf06e955e Propagate allowed input types to `event_listener` when setting them on `InputEventConfigurationDialog` 2023-01-10 23:26:33 +10:00
Rémi Verschelde d95794ec8a
One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05 13:25:55 +01:00
Eric M da1589dae6 Refactor `get_event_text` to a static method, remove high deadzone from event configuration.
* `get_event_text` and `get_device_string` are now static methods (they always could have been)
* Applied 90% deadzone on joypad motion inputs in the configurator had the effect of ignoring most joypad motion inputs. Low ones do not need to be filtered out as JoypadMotion is only considered 'pressed' if it as above 50% strength - and that works well.
2022-11-18 18:18:31 +10:00
Eric M 8678e4d34f Focus EventListener when InputEventConfigurationDialog is opened. 2022-10-14 18:26:07 +10:00
Eric M 598ee4266c Split `action_map_editor` file into one file per class it contained.
* ActionMapEditor
* EventListenerLineEdit
* InputEventConfigurationDialog
2022-10-06 18:29:20 +10:00