Commit graph

768 commits

Author SHA1 Message Date
Eugene Sandulenko
1277ff8b35 MORPHOS: Update backends/platform/sdl/sdl-window.cpp
Co-authored-by: Cameron Cawley <ccawley2011@gmail.com>
2020-08-21 00:59:18 +02:00
BeWorld
2f39941fb3 MORPHOS: Update morphos.mk 2020-08-21 00:59:18 +02:00
BeWorld
f2bfa5c7be MORPHOS: Update morphos.mk 2020-08-21 00:59:18 +02:00
BeWorld
38d0004582 MORPHOS: Update sdl-window.cpp
MorphOS SDL doesnt support SDL_GetWMInfo
2020-08-21 00:59:18 +02:00
BeWorld
f20cdd53aa MORPHOS: Update morphos-main.cpp
More stack and delete somes comments
2020-08-21 00:59:18 +02:00
BeWorld
7f64190ad5 MORPHOS: Update morphos.mk
Update with AmigaOS
2020-08-21 00:59:18 +02:00
BeWorld
ac06a679f9 MORPHOS: Update sdl.cpp
SDL_iconv doesnt work with MorphOS' SDL 1.2
2020-08-21 00:59:18 +02:00
BeWorld
66426e970e MORPHOS: Update morphos.mk
PR #1614
2020-08-21 00:59:18 +02:00
BeWorld
c2f40b7f4f MORPHOS: Update backends/platform/sdl/morphos/morphos.mk
Co-Authored-By: Cameron Cawley <ccawley2011@gmail.com>
2020-08-21 00:59:18 +02:00
BeWorld
54775a3de9 MORPHOS: MorphOS Support 2020-08-21 00:59:18 +02:00
BeWorld
d70b4bcbf1 MORPHOS: MorphOS Support 2020-08-21 00:59:18 +02:00
Cameron Cawley
30f2c2f3cd WIN32: Use malloc instead of new in string conversion functions 2020-08-21 00:02:13 +02:00
Eugene Sandulenko
ed82ccb95b BACKENDS: More mutexes 2020-08-20 00:53:23 +02:00
Cameron Cawley
1cdf50ce75
GP2XWIZ: Fix compilation with older SDL versions 2020-08-03 01:17:13 +01:00
Cameron Cawley
215c98d321 MAEMO: Fix compilation with older SDL versions 2020-08-02 23:03:30 +01:00
Eugene Sandulenko
eaa86f9333 ALL: Remove WebOS port 2020-08-01 14:56:16 +02:00
Cameron Cawley
6379adad21 WIN32: Fix missing include 2020-05-29 21:17:34 +01:00
Zvika Haramaty
a611975561 WIN32: Fix convertEncoding problem due to String deallcation 2020-05-19 12:32:58 +02:00
Cameron Cawley
fd0741bfb1 RISCOS: Fix missing include 2020-05-15 14:17:42 +01:00
Cameron Cawley
2f6d219dce SDL: Move detection of the desktop resolution into the SdlWindow class 2020-05-10 21:53:07 +02:00
mataniko
b0895cf7c2 BACKENDS: Fix SDL version check for SDL_EnableScreenSaver 2020-05-10 00:50:54 -04:00
mataniko
38325bfb94 BACKENDS: Don't turn off screen when ScummVM is running a game 2020-05-10 00:35:29 -04:00
mataniko
dbf404b786 BACKENDS: Allow the screensaver to turn on when ScummVM is running 2020-05-09 19:46:29 -04:00
D G Turner
8f6620b84f SDL2: Fix GCC Compiler Warning about Enum vs. Non-Enum Type in Conditional
The issue is that SDL_GetWindowWMInfo returns a SDL_bool enumeration type
rather than a standard bool. It should be noted that SDL_GetWMInfo used
later in this function returns a int type instead and thus will cast to
bool without warning.
2020-05-09 05:41:20 +01:00
Max Horn
08b4639cbb ALL: fix a bunch of const warnings
Also while add it, constify some code
2020-04-17 22:41:11 +01:00
Thierry Crozat
b196d26b3e SDL: Add --logfile command line argument to specify logfile path 2020-04-17 22:39:50 +01:00
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
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
Cameron Cawley
a5b6a577de SDL: Remove unnecessary overrides of setFeatureState() and getFeatureState() 2020-03-27 22:50:41 +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
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
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
Cameron Cawley
f2db412ba5 GUI: Store the shader name in the config file instead of the ID 2020-03-09 18:01:14 -05:00
Cameron Cawley
5fd8aed047 SDL: Move the compatibility functions into SurfaceSdlGraphicsManager 2020-03-09 22:15:45 +02: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
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
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
rsn8887
32807393c5 SWITCH: Update platform readme 2020-03-06 23:25:18 -06:00
Cameron Cawley
a730e8775b SDL: Clean up keycode usage 2020-02-22 22:11:34 +02:00
Bastien Bouclet
2177e685b7 KEYMAPPER: Allow joystick half axes to be remapped 2020-02-09 08:34:16 -06:00
rsn8887
eea70a3c8c BACKEND: Allow SDL2 mapping of L2/R2, fix psp2/switch mapping 2020-02-09 08:34:16 -06:00
Eugene Sandulenko
6817478967 BACKENDS: SDL: Add override keywords 2020-01-31 12:39:23 +01:00
Bastien Bouclet
161ca5285d PS3: Fix controller button name
Geometrically accurate is not good enough.
2020-01-29 16:28:36 +01:00
Bastien Bouclet
05a7ca7b76 PS3: Use the appropriate gamepad button names for the keymapper 2020-01-29 08:51:30 +01:00
Bastien Bouclet
43184657e9 EVENTS: Disable ScummVM's source of keyboard repeat events by default
Backends can still (and do) generate such events. This works around an
issue with the keymapper where the "DOWN" event would be mapped to a
key, but the corresponding "UP" event would be mapped to another one due
to a keymap change. The keyboard repeat generation system would believe
the key to be still pressed and send a continuous stream of repeat
events.
Ideally the keymapper should be fixed to always generate matching event
pairs. However this source of an infinite stream of events still looks
like trouble waiting to happen to me. Hence disabling it by default.
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
32174c9067 KEYMAPPER: Actions can now be bound to joystick buttons 2020-01-29 08:51:29 +01:00