Commit Graph

7200 Commits

Author SHA1 Message Date
Bastien Bouclet
85e3fb38fb SDL: Change keyboard repeat to apply on unmapped events
The keyboard repeat event generator is used when building against SDL1.
Previously the repeat events would generate based on the event stream
produced by the keymapper which is not guaranteed to have matching up
and down events in the case the keymaps are changed while a key is
pressed.

Fixes #11417.
2020-04-12 11:11:00 +02:00
Cameron Cawley
27e8467b28 ANDROID: Add support for additional mouse buttons 2020-04-07 13:55:30 +03:00
Le Philousophe
d3c72b4c97 ANDROID: Update files in build directory when source changed 2020-04-07 11:36:02 +03:00
Cameron Cawley
b8e1aa66e5 ANDROID: Ignore input from the volume buttons 2020-04-01 21:10:00 +01:00
athrxx
a3bc386335 SDL2: silence 'window magic' assert
Some builds of SDL2 (in my case the vcpkg debug Winx64 build) trigger an annoying and rather pointless assert when calling SDL_GetWindowWMInfo() with a _window parameter of 0 (window && window->magic == &this->window_magic). This commit silences that.
2020-03-29 13:40:40 +02:00
Bastien Bouclet
f6bb3af12a KEYMAPPER: Use OptionsContainerWidget for the remap widget 2020-03-28 07:38:39 +01:00
Cameron Cawley
4c3c910028 GCW0: Fix compilation 2020-03-27 23:27:37 +00:00
Cameron Cawley
d6a02740a8 GPH/DINGUX: Unify the downscaling code 2020-03-27 22:50:41 +01:00
Cameron Cawley
f2d323628d GCW0: Fully disable the downscaling code 2020-03-27 22:50:41 +01:00
Cameron Cawley
153576f0b5 BACKENDS: Move implementations of hasFeature into the relevant OSystem subclasses 2020-03-27 22:50:41 +01:00
Cameron Cawley
a5b6a577de SDL: Remove unnecessary overrides of setFeatureState() and getFeatureState() 2020-03-27 22:50:41 +01:00
Cameron Cawley
205175c4e5 SDL: Don't allow switching to and from fullscreen if it isn't supported 2020-03-27 22:50:41 +01:00
Peter Kohaut
470a1d3586 ANDROID: Switch to Gradle
Updated NDK to r21 (LTS)
Switch target Android to 29 as it is required by Google Play Store
Switch minimum Android to 16 (4.1) as it is the lowest supported version by NDK
Removed MIPS and armeabi as they are no longer supported
Renamed Android build names into official ones
2020-03-27 22:45:25 +01:00
Thierry Crozat
8eac9606bc MACOSX: Check selector exists when trying to replace application menus
In particular it has been reported that setHelpMenu was introduced in
MacOS X 10.6. So hopefully this change will fix running ScummVM on
MacOS X 10.5 or older.

This might fix bug #11260: MAC OS X: App incomplete when launched on
OS X 10.5.8.
2020-03-22 20:36:35 +00:00
SupSuper
897efb1454 POSIX: Add support for native GTK file browserOnly enabled on platforms with libgtk 2020-03-22 20:46:42 +02:00
SupSuper
a4d44e3de9 BACKENDS: Move shared DialogManager code to common
All backends need to flush events and window when opening a dialog
2020-03-22 20:46:42 +02:00
SupSuper
22943ee368 NETWORKING: Fix delete instead of free 2020-03-20 16:02:16 +00:00
D G Turner
047545cc1b KEYMAPPER: Fix Missing Default Switch Case
These are flagged by GCC if -Wswitch-default is enabled.
2020-03-17 13:33:12 +00:00
Bastien Bouclet
16d0687b66 SWITCH: Use ScummVM file buffering instead of newlib's implementation
Fixes #11384.
2020-03-16 14:53:09 -05:00
Bastien Bouclet
9cc2fee887 SDL: Enable joystick input by default
Game controller input is now enabled whenever a compatible device is
connected. The keymapper's keymaps are refreshed when a joystick is added
or removed.

Fixes #10366.
2020-03-16 18:41:27 +01:00
Cameron Cawley
d205578d4d SDL: Add a separate function for setting the hardware size 2020-03-16 01:30:05 +02:00
Cameron Cawley
3e94325df9 BACKENDS: Allow compiling certain backends for standard Linux platforms 2020-03-16 01:29:20 +02:00
rsn8887
bd1b346e08 BACKENDS: strip psp2 executable to reduce size 2020-03-14 00:46:46 -05:00
Bastien Bouclet
a155061ee4 KEYMAPPER: Set the default virtual mouse settings
Fixes the 3DS mouse cursor drifting.
2020-03-11 06:15:46 +01:00
Bastien Bouclet
dbb2c73a6b KEYMAPPER: Update the logic for multiple global / game keymaps
It is valid for actions from different keymaps of the same type to be
triggered by a single event.
2020-03-11 05:07:06 +01:00
Eugene Sandulenko
ef80498843 KEYMAPPER: Comment out noisy warning 2020-03-10 17:05:53 +01:00
Cameron Cawley
0fbfeaf21b SDL: Move all shader code into PSP2SdlGraphicsManager 2020-03-09 18:01:14 -05:00
Cameron Cawley
f2db412ba5 GUI: Store the shader name in the config file instead of the ID 2020-03-09 18:01:14 -05:00
Bastien Bouclet
242e70db33 PSP2: Fix build 2020-03-09 22:16:10 +01:00
Cameron Cawley
5fd8aed047 SDL: Move the compatibility functions into SurfaceSdlGraphicsManager 2020-03-09 22:15:45 +02:00
Cameron Cawley
981b771e38 BACKENDS: Remove unused feature kFeatureDisableKeyFiltering 2020-03-09 22:14:38 +02:00
Bastien Bouclet
6161f4af6e SDL: Fix SDL1 build 2020-03-09 21:10:22 +01:00
Bastien Bouclet
cd173c8739 3DS: Use the shared virtual mouse 2020-03-09 20:00:31 +01:00
Bastien Bouclet
568d882e80 KEYMAPPER: Introduce a Virtual Mouse event source
The Virtual Mouse is meant to provide a way to control the mouse cursor
on system without a physical mouse. It provides keymapper actions that
are expected to be bound to game controller axes or buttons.
2020-03-09 20:00:31 +01:00
Bastien Bouclet
e66e35a3fd COMMON: Move isMouseEvent from Keymapper to Common 2020-03-09 20:00:31 +01:00
Bastien Bouclet
d94c7c3bcc SDL: Move the keyboard mouse to a subclass of SdlEventSource
And deprecate it. The new Virtual Mouse system is expected to replace
it.
2020-03-09 20:00:31 +01:00
Eugene Sandulenko
4da444f238 AUDIO: Added override keywords 2020-03-09 16:08:19 +01:00
Eugene Sandulenko
75ba54aa3e BACKENDS: Remove LinuxMoto port.
This was a relatively short-lived port. We have it broken and
disabled on the buildbot since 2016. Also, the last builds
were provided in 2011. Thus, it makes a little sense to continue
to keep the code in the repository, as it gets bitrot.
2020-03-09 14:31:14 +01:00
Cameron Cawley
76d73419c0 GPH/LINUXMOTO: Fix drawing the mouse cursor 2020-03-09 13:47:34 +01:00
rsn8887
32807393c5 SWITCH: Update platform readme 2020-03-06 23:25:18 -06:00
Zvika Haramaty
3b4810aab4 AUDIO: Added dump-midi mechanism
This mechanism is enabled by '--dump-midi' command line parameter.
The midi events are printed to screen, and dumped to 'dump.mid' file.
2020-02-28 08:27:12 +02:00
Bastien Bouclet
606a68172d 3DS: Set a translation context for the 3DS screen strings
So they can have dedicated translations.

Fixes #11371.
2020-02-28 05:46:36 +01:00
Bastien Bouclet
ff63764dd9 KEYMAPPER: Adjust the name of the meta key on Windows and macOS
Fixes #11364.
2020-02-28 05:46:36 +01:00
Bastien Bouclet
98428af798 OPENPANDORA: Fix build 2020-02-27 07:58:34 +01:00
Thanasis Antoniou
bd1e2b8b87 ANDROID: Notes on superseded swap_menu_and_back_buttons conf key 2020-02-27 08:23:09 +02:00
Cameron Cawley
a1648cbb97 SDL: Simplify mouse button handling on AndroidSDL, GPH and OpenPandora 2020-02-26 21:34:24 +01:00
Cameron Cawley
1605b72ee8 BACKENDS: Add events for additional mouse buttons 2020-02-26 21:34:24 +01:00
Cameron Cawley
fffb25a47a
ANDROID: Add basic keymapper support (#2026)
* ANDROID: Remove hard-coded key mappings

* ANDROID: Add default key bindings
2020-02-26 10:23:47 +02:00
Cameron Cawley
a730e8775b SDL: Clean up keycode usage 2020-02-22 22:11:34 +02:00
Bastien Bouclet
9475192e81 ENGINES: Add a keymaps tab in the in-game options dialog 2020-02-22 13:14:04 +02:00