Commit graph

51 commits

Author SHA1 Message Date
Donovan Watteau
5b1ec56f96 JANITORIAL: Fix some lost or outdated URLs in comments 2022-05-19 07:57:31 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Cameron Cawley
ef0048fa77 COMMON: Add standard actions for mouse button clicks 2021-04-06 11:15:42 +03:00
Cameron Cawley
01b4432825 BACKENDS: Use Common::U32String for OSystem::setWindowCaption 2020-11-22 17:20:19 +00:00
Cameron Cawley
0b7085fbea SDL: Ensure that SDL is initialized before creating the window object 2020-10-11 22:45:38 +01:00
Cameron Cawley
3e94325df9 BACKENDS: Allow compiling certain backends for standard Linux platforms 2020-03-16 01:29:20 +02:00
Bastien Bouclet
2ef7365401 KEYMAPPER: Change backend default bindings to replace keymap defaults
Previously backend defaults where added to the keymap defaults.
However, it became apparent backends need to change the default bindings
to resolve conflicts.
2020-01-29 08:51:30 +01:00
Bastien Bouclet
e973092aef KEYMAPPER: Enable remapping of the mouse buttons 2020-01-29 08:51:29 +01:00
Bastien Bouclet
426867f4bc KEYMAPPER: Give human readable descriptions to the keymaps 2020-01-29 08:51:29 +01:00
Bastien Bouclet
32174c9067 KEYMAPPER: Actions can now be bound to joystick buttons 2020-01-29 08:51:29 +01:00
Bastien Bouclet
df7ce0c55f KEYMAPPER: Rework HardwareInputSet not to allocate all possible inputs 2020-01-29 08:51:29 +01:00
Bastien Bouclet
df4bf6556c KEYMAPPER: Introduce custom engine actions
Custom engine actions are a new type of event the Keymapper can produce.
When an engine declares its keymap, it can declare it wants to receive
custom action events when the corresponding key is pressed, instead of
the originating hardware input events.

This system allows:
* Key bindings to be specified only once when declaring the keymap,
  instead of twice (when handling the events).
* To truly rebind keys in the keymaps dialog. When using traditional
  event mapping, the keymapper remaps the user keypress to the keypress
  expected by the game engine to perform the action. However, the engine
  still accepts the original keys.

The new concept of 'standard actions' defines a set of engine actions
that are commonly available in the games supported by ScummVM. Backends
can define default bindings for the standard actions to hardware
specific input devices.
2020-01-29 08:51:29 +01:00
Bastien Bouclet
7617723ab5 KEYMAPPER: Allow backends to register multiple keymaps 2020-01-29 08:51:29 +01:00
Bastien Bouclet
14663c4790 KEYMAPPER: Make the keymapper mandatory 2020-01-29 08:51:29 +01:00
Bastien Bouclet
cc336635a1 KEYMAPPER: Change custom backend action events not to be instant
Allows action consumers to choose if they want to react on the start or
on the end of an user interaction.
2020-01-29 08:51:29 +01:00
Bastien Bouclet
19de568e24 KEYMAPPER: Untangle the dependencies between Action and Keymap 2020-01-26 23:09:08 +02:00
Bastien Bouclet
3d48b54288 KEYMAPPER: Remove the ascii value from the hardware keys
The ascii value is for text input, which is not related to hotkeys.
2020-01-26 19:07:53 +01:00
Bastien Bouclet
5a62837f04 MAEMO: Adapt to the new keymapper API 2020-01-26 19:07:53 +01:00
Cameron Cawley
6e690c5a8b MAEMO: Minor cleanup 2019-07-08 11:11:45 -05:00
Bastien Bouclet
3b8ffa0812 BACKENDS: Remove vkeybdpath override from some ports
DATA_PATH is now search when loading virtual keyboard files, the
overrides are no longer required.
2017-12-28 21:27:37 +01:00
Tarek Soliman
f28ced2e96 MAEMO: Fix default bindings
This code depended on the off by one
bug fixed in 9b8b737
2016-02-05 01:06:54 -06:00
Tarek Soliman
0aa512da12 MAEMO: Fix compilation.
Related to 71cc9e41e8
2015-04-20 12:12:34 -05:00
Johannes Schickel
3f22c12c56 SDL: Handle icon setup in SdlWindow. 2015-02-16 01:25:22 +01:00
Johannes Schickel
627d766325 SDL: Add basic abstraction class for the SDL window. 2015-02-16 01:03:29 +01:00
Johannes Schickel
4f34f44fbf MAEMO: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Tarek Soliman
2f08f95e11 MAEMO: Fix uninitialized member 2012-07-15 00:26:04 -05:00
Tarek Soliman
848b6daeb9 MAEMO: Minor whitespace fix 2012-07-15 00:07:24 -05:00
Tarek Soliman
6abb3501b5 MAEMO: Set defaults for fullscreen and aspect ratio correction
New installs now have fullscreen and aspect ratio correction on by default
2012-07-15 00:02:58 -05:00
Tarek Soliman
aa8dec9a72 MAEMO: Fix compile without keymapper 2012-07-14 23:55:21 -05:00
Tarek Soliman
657206bc5b MAEMO: Define only special keys to Keymapper
Also get rid of static tables in headers.
2012-02-28 06:46:19 -06:00
Tarek Soliman
477c1b9a87 KEYMAPPER: HardwareInputSet now has defaults
Ports can add additional special keys.
SDL no longer carries the static tables.
Default behavior unchanged: HardwareInputSet() still gives an empty one.
2012-02-28 06:45:35 -06:00
Tarek Soliman
533f80282b KEYMAPPER: Rename EVENT_CUSTOM_BACKEND to EVENT_CUSTOM_BACKEND_ACTION 2012-02-27 13:04:59 -06:00
Tarek Soliman
6afac4e01e KEYMAPPER: Rename HardwareKey to HardwareInput 2012-02-27 13:00:56 -06:00
Tarek Soliman
3edd4180f3 MAEMO: Move static table out of .h file
Thanks fuzzie & LordHoto for pointing this out
2012-02-24 21:43:08 -06:00
Tarek Soliman
aa42d78658 KEYMAPPER: Remove automapping dead code 2012-02-21 08:20:40 -06:00
Tarek Soliman
53d6ef1209 MAEMO: Fix building without keymapper enabled 2012-02-17 14:42:39 -06:00
Tarek Soliman
b6e5e4fe1e MAEMO: Remove pointless copy ctor call
Thanks LordHoto
2012-02-15 17:56:09 -06:00
Tarek Soliman
e55914c51b MAEMO: Register Keymapper Keymap Action default bindings 2012-02-15 17:12:52 -06:00
Tarek Soliman
5cf932198e KEYMAPPER: Fix Action ctor args in most keymaps 2012-02-13 23:24:59 -06:00
Johannes Schickel
d811240a9d ALL: Enable Keymapper specific OSystem API only when the Keymapper is enabled. 2012-02-13 01:20:02 +01:00
Tarek Soliman
c2640ed33a MAEMO: Use custom event Click Mode keymap action 2012-02-12 13:28:13 -06:00
Tarek Soliman
8c245af35c MAEMO: Define platform global keymap 2012-02-12 13:28:13 -06:00
Tarek Soliman
e52f75eaa4 MAEMO: Define HardwareKeySet 2012-02-12 13:28:13 -06:00
Tarek Soliman
29c0386f2c MAEMO: Add basic graphics manager 2011-11-29 13:38:17 -06:00
Tarek Soliman
c451bd4340 MAEMO: Make setupIcon do nothing
It seems N900 is hit by SDL_WM_SetIcon bug (window cannot receive input)
http://bugzilla.libsdl.org/show_bug.cgi?id=586

This fix is based on the old 1.2.1 Maemo port code
2011-11-24 23:06:21 -06:00
Tarek Soliman
b56e9e2ef1 MAEMO: Migrate OSystem_SDL_Maemo to Maemo namespace 2011-10-11 19:54:16 -05:00
Tarek Soliman
52fae5524c MAEMO: Add basic structs to Maemo namespace 2011-10-11 19:54:16 -05:00
Tarek Soliman
42ccfbfdde MAEMO: Add detection for specific hardware model
Features detected right now are just the hardware keyboard
2011-10-11 19:54:16 -05:00
Tarek Soliman
9aad73be5e MAEMO: enable virtual keyboard and add keymapping 2011-09-22 22:07:45 -05:00
Tarek Soliman
e04a8fdc3a MAEMO: fix task switcher window title 2011-09-22 22:07:45 -05:00