Commit graph

261 commits

Author SHA1 Message Date
Filippos Karapetis
3221471035 BACKENDS: Use pointers when deleting inside range loops 2025-03-27 13:47:57 +08:00
Filippos Karapetis
ce51fd937f BACKENDS: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Donovan Watteau
985d2526d7 GUI: KEYMAPPER: Fix small -Wpedantic warning 2024-06-22 06:01:20 +02:00
Cameron Cawley
efec9b2d25 GUI: Remove built-in scroll containers from OptionsContainerWidget 2024-06-14 01:15:12 +02:00
Cameron Cawley
65e843c5da GUI: Separate the scroll container from the remap widget 2024-06-14 01:15:12 +02:00
PushmePullyu
037131d977 KEYMAPPER: Add method isEnabled to Common::Keymapper 2024-02-23 18:59:27 -10:00
Eugene Sandulenko
1d6f7b05ea
JANITORIAL: Clean up some English language 2024-01-21 00:28:44 +01:00
Cameron Cawley
5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Matthew Duggan
6d42ea3ff2 KEYMAPPER: const correctness for getActionMapping 2023-12-03 20:16:27 +11:00
Matthew Jimenez
70a7fef8af GUI: Fix scrollbar visibility for keymaps option tab.
This fixes #14701
2023-11-27 15:55:06 +01:00
Kurian Jojo
595a3d7724 GUI: Use Keymapper for EditableWidget 2023-10-24 19:01:12 +02:00
antoniou79
948f004a78 KEYMAPPER: Fix size of _joystickAxisPreviouslyPressed array
It should include all the valid axis defined in defaultJoystickAxes so the size should now be 8

The 2 extra since the previous size (6) is due to the addition of support for HAT_X and HAT_Y axis.
This fix allows the HAT_X+/- and HAT_Y/+- to operate as valid incoming events when mapped to an action (see Keymapper::convertToIncomingEventType())
2023-08-14 14:09:41 +03:00
hax0kartik
76bf31f630 KEYMAPPER: Add functions to enable/disable keymaps 2023-06-16 16:45:57 +02:00
Cameron Cawley
30bdbb6f76 Revert "GUI: Ensure that all keymap widgets fit within the scroll container"
This reverts commit d255fbe671.
2023-05-14 22:43:57 +02:00
Antoniou Athanasios
fd5a5a2156 KEYMAPPER: Add HAT AXIS (DPAD as movement) to hw input
Also add it in JoystickAxis enum of common/events

Many gamepads have HATs instead of DPAD buttons, ie. they send movement events instead of button presses for the DPAD directions
2023-04-04 22:16:24 +03:00
antoniou79
093f7d1cd6 KEYMAPPER: Add DPAD_CENTER as hardware input source
And define an event for it as a JoystickButton

Some controllers produce this key press with their DPAD, typically to select and interact with options.
See: https://developer.android.com/develop/ui/views/touch-and-input/game-controllers/controller-input
Fire TV remote controller is such a contoller.
see: https://developer.amazon.com/docs/fire-tv/remote-input.html
2023-03-30 01:12:52 +02:00
Athanasios Antoniou
3565d0e312
KEYMAPPER: Allow multiple inputs bound to a keymap action as defaults (#4830)
This allows backeds to override a keymap action mapping with lists of mapped hardware inputs instead of just one hardware input id

However, it will still be an overridding, so it will require all hardware input ids for a given keymap action to be added.
In other words, if a backend uses addDefaultBinding() for a given action, it will not ADD to any existing mappings of the action,
other than the ones that the backend itself has added (with addDefaultBinding())
2023-03-24 11:28:24 +01:00
antoniou79
d6b2f6850a ANDROID: Revert "ANDROID: Support FireTV remote"
This reverts commit 16f626401e

It was accidentally pushed, while not being ready yet.
2023-03-22 22:19:58 +02:00
Antoniou Athanasios
16f626401e ANDROID: Support FireTV remote 2023-03-22 21:46:48 +02:00
Donovan Watteau
18ab6803d6 JANITORIAL: Fix various "an" typos in comments 2023-03-16 14:47:28 +01:00
Cameron Cawley
d255fbe671 GUI: Ensure that all keymap widgets fit within the scroll container 2022-12-25 16:11:27 +01:00
Cameron Cawley
60ff6984ff GUI: Move keymap descriptions to the left if there isn't enough room 2022-12-25 16:11:27 +01:00
Cameron Cawley
cb3a024589 COMMON: Allow registering multiple event mappers 2022-06-18 23:13:17 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
44219dfa1a BACKENDS: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Cameron Cawley
6dbb129f40 BACKENDS: Allow activating the system virtual keyboard using the keymapper 2021-11-01 16:54:39 +01:00
Martin Gerhardy
36afa639a4 EVENTRECORDER: skip some getMillis for the event recorder
they are running as event source and would bring the event recorder into an out-of-sync state
2021-07-08 15:05:35 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Cameron Cawley
da960cd939 GUI: Add EE to the GUI keymap 2021-04-18 15:28:51 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Eugene Sandulenko
f769cd6526 GUI: Fix oversized keymapper controls 2021-04-11 21:21:44 +02:00
Cameron Cawley
ef0048fa77 COMMON: Add standard actions for mouse button clicks 2021-04-06 11:15:42 +03:00
rsn8887
af4878e884 KEYMAPPER: Fix exit on analog input 2021-02-16 18:04:37 -06:00
Henrik "Henke37" Andersson
d6ad9f19cf BACKENDS: Keymapper needs getOrCreateVal 2021-02-12 00:41:23 +01:00
Cameron Cawley
c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
Fiodar Stryzhniou
6a7340f744 SYMBIAN: sync with 2.2.0 release.
Added new project files, build fixes.
2020-10-16 17:06:05 +02:00
Paweł Kołodziejski
35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Pawel Kolodziejski
eb83a03208 EVENTS: Added relative mouse position in virtual mouse 2020-10-06 15:39:07 +02:00
Pawel Kolodziejski
c12503a869 Synced with ScummVM rev: f6c5fed173 2020-10-03 18:14:12 +02:00
Pawel Kolodziejski
e9839c31e2 BACKENDS: Drop native game joystick support in replacement for emulated from core events backend. 2020-10-03 17:13:54 +02:00
D G Turner
3c96f78ec5 KEYMAPPER: Fix GCC Compiler Warning for Signed vs Unsigned Comparison 2020-10-02 00:05:07 +01:00
Pawel Kolodziejski
5487e5e718 ALL: Sync with ScummVM rev: e08ba6ff14 2020-09-27 19:45:22 +02:00
antoniou
8a87db94de KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-26 17:00:57 +03:00
Pawel Kolodziejski
bfe58d3c77 ALL: Synced with ScummVM - rev: d4db631f9b 2020-09-23 21:52:10 +02:00
Bastien Bouclet
0155bb06af KEYMAPPER: Fix comparing mappings for equality
Fixes clearing default action mappings.
2020-09-15 22:42:34 +02:00
Bastien Bouclet
a977dfb2d1 KEYMAPPER: Enable the GUI keymaps while the virtual keyboard is visible 2020-09-15 22:42:34 +02:00
rsn8887
3a5690ebb4 KEYMAPPER: Fix virtual mouse bound in small rectangle in vkeybd 2020-09-14 20:58:37 -05:00
Pawel Kolodziejski
15a759370a ALL: Synced with ScummVM - rev: bdbbcd81ae 2020-09-12 19:38:50 +02:00
Thierry Crozat
7e05309077 KEYMAPPER: Translate hardware input description
The strings were already marked for translation, but were not actually
translated.
2020-09-08 21:25:02 +01:00
Pawel Kolodziejski
d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +02:00