Commit Graph
325 Commits
Author SHA1 Message Date
Cameron Cawley 6e690c5a8b MAEMO: Minor cleanup 2019-07-08 11:11:45 -05:00
Cameron Cawley 52e7ba5e54 SDL: Support joystick hat input 2019-07-08 01:24:55 +03:00
Cameron Cawley 30109816fe SDL: Initial implementation of joystick events 2019-07-08 01:24:55 +03:00
Bastien Bouclet 0a8049e30c SDL: Fix gamepad mouse cursor wrapping on hi-res screens
The cursor position was overflowing a signed 16-bits integer once
multiplied with MULTIPLIER when using a resolution such as 2560x1440.

It would be nice changing this code to make more sense, sadly it is
thightly coupled with platform specific subclasses.

Fixes #10996.
2019-06-27 20:12:52 +02:00
rsn8887 536521d356 SWITCH: Enable touchpad mouse mode option in controls 2019-06-13 15:38:10 -05:00
Le Philousophe dc0bfbc724 COMMON: Fix button state desynchronization when warping mouse 2019-05-22 00:14:56 +02:00
Cpasjuste 488bbb267a SWITCH: add nintendo switch support 2019-05-12 11:59:44 +03:00
Cameron Cawley fb0b63ba66 RISCOS: Add Drag and Drop support 2019-04-30 22:17:04 +01:00
Cameron Cawley d7b2b1b8f9 GUI: Support adding games via Drag and Drop 2019-04-30 22:17:04 +01:00
Cameron Cawley bcef809e61 WINCE: Fix compilation 2019-04-15 08:06:39 +03:00
Hubert Maier ce8227323b AmigaOS4: Exclude platform from a SDL1/2 keyboard fix that breaks numpad usage (#1551)
SDL1/2: Exclude AmigaOS4 from returning 0 for .ascii

*reset .ascii to 0, when Num-Lock is NOT enabled and keypad directional keys are pressed* (original description) is causing the numpad to play dead completely on AmigaOS4 (no matter if numlock is active or not). This is a workaround for the SCUMM engine, where keycodes are mixed with ASCII codes.

Check commit f5ed14e93d for reference. 

Fixes bug #10558. Tested with both SDL1 and 2 on AmigaOS4 and with both Indiana Jones games.
2019-04-11 01:28:18 +03:00
Cameron Cawley 79a4e3f813 BACKENDS: Remove references to the GP32 backend 2018-11-04 21:38:45 +00:00
Cameron Cawley 885b8e9efe BACKENDS: Mark resetQuit and getKeymapper as override 2018-08-15 20:25:06 +02:00
rsn8887 eb49ef0626 PSP2: Improve pointer response to slow finger motion 2018-07-15 03:30:42 -05:00
LMerckx f0dfc19f29 SDL: Allow to load a custom game controller mapping file
And add a specific joystick button to open virtual keyboard
2018-04-04 20:40:16 +02:00
Eugene Sandulenko d6b5e3f611 BAKCENDS: Mark methods as override 2018-03-28 11:58:35 +02:00
rsn8887 880081aa2c PSP2: make touch mouse clicks longer so all games receive them
Some games such as Gobliins or Dreamweb did not react to the
simulated touch mouse clicks because the clicks were too short.
This change ensures all games see the simulated clicks by
giving each click a minimum duration of 50 ms instead of being
as fast as possible.
2018-03-28 00:13:32 -05:00
rsn8887 ece8dedcf4 PSP2: prevent accidental clicks when moving pointer using touch 2018-03-23 18:11:13 -05:00
rsn8887 9af2b5ca3a PSP2: fix touch sometimes not directly under finger 2018-03-20 03:14:11 -05:00
Bastien Bouclet 2e875a768d SDL: Split joystick mouse event generation into two functions
That way it is easier to implement relative mouse movement in
ResidualVM.
2018-03-18 13:09:00 +01:00
rsn8887 bfef3da347 PSP2: Implement three-finger drag as right-mouse button drag 2018-02-13 13:32:04 -06:00
rsn8887 86b1e74b28 PSP2: allow 'frontpanel_touchpad_mode=true' option in ScummVM.ini
Can change option to 'true' manually in scummvm.ini to force front
panel into indirect touchpad mode where the pointer doesn't jump
to finger.
2018-02-08 00:19:41 -06:00
rsn8887 d80ddcc246 PSP2: Prevent jumping touch cursor on right click 2018-01-28 19:49:16 -06:00
rsn8887 195d1f5dee PSP2: Add 2-finger drag-and-drop touch motion 2018-01-28 18:29:17 -06:00
rsn8887 68274d1cc6 PSP2: Improve direct touch accuracy 2018-01-27 19:02:59 -06:00
Bastien Bouclet 1b0ffaf311 Merge pull request #1111 from bgK/gamepad-scale-mouse-speed-with-resolution
SDL: Scale the joystick mouse speed with the vertical window size
2018-01-27 18:20:47 +01:00
rsn8887 3cc12c3da2 PSP2: Always use direct touch on front touch panel 2018-01-25 11:57:31 -06:00
rsn8887 5de0a8b3a0 PSP2: Enable rear touch only when Touchpad Mouse Mode is on 2018-01-24 20:06:46 -06:00
rsn8887 690d39cc29 PSP2: Increase direct touch accuracy 2018-01-24 19:06:22 -06:00
rsn8887 5551241c51 PSP2: More settings for touch (direct touch on/off, pointer speed) 2018-01-24 04:16:49 -06:00
rsn8887 5189dbb7ba PSP2: Implement touch controls (front and back panel) 2018-01-23 07:27:11 -06:00
Fiodar Stryzhniou c0c186d001 SYMBIAN: Add missed brace 2018-01-14 06:49:54 +00:00
Bastien Bouclet 49a48cedea SDL: Scale the joystick mouse speed with the vertical window size
The mouse cursor now moves across the screen in a similar amount of time
irrespective of the display resolution.
2018-01-13 10:29:10 +01:00
Bastien Bouclet bb5e8d3a11 Merge pull request #1090 from bgK/remove-zaurus-yopy
PORTS: Remove the Zaurus and Yopy ports
2018-01-03 06:40:49 +01:00
Bastien Bouclet 1fa80ea3a3 SDL: Add debug traces for joystick hotplug 2017-12-27 07:30:53 +01:00
Bastien Bouclet 6437ca1ede PS3: Stop using SDL mouse focus events to detect the XMB
Mouse focus events are also sent by SDL when the mouse is warped outside
of the window area. App suspended / resumed are now used. These are only
sent by SDL when opening / closing the XMB on the PS3.

Fixes #10340.
2017-12-26 21:29:30 +01:00
rsn8887 dafadbc8c7 PSP2: Add controller config, remove joystick event handling 2017-12-26 21:11:05 +01:00
Bastien Bouclet 1522fc8e2f SDL: Add support for joystick hotplug
Fixes #10366.
2017-12-26 21:11:05 +01:00
Bastien Bouclet 5838894f24 PSP2: Remove identical to base class joystick axis event handling 2017-12-26 21:11:04 +01:00
Bastien Bouclet ee4ff8ca08 SDL: Cleanup joystick deadzone handling 2017-12-26 21:11:04 +01:00
Bastien Bouclet 1fb748e974 SDL: Move the non analog joystick code to the Symbian port
Symbian was the only user of that code.
2017-12-26 21:11:04 +01:00
Bastien Bouclet 6fb50d562f PS3: Remove gamepad button mapping
SDL_PSL1GHT now supports the GameController API. ScummVM's default
mapping is now used.
2017-12-26 21:11:04 +01:00
Bastien Boucletandrsn8887 ac78058fcd SDL: Initial support for game controllers
The button mapping is that of the Vita port

Co-Authored-By: rsn8887 <rsn8887@users.noreply.github.com>
2017-12-26 21:11:04 +01:00
Bastien Bouclet 60a1100beb PORTS: Remove the Zaurus port
There was never an official release. The last unofficial release of ScummVM was 0.6.0.
Production ceased in 2007.
2017-12-19 07:42:22 +01:00
Bastien Bouclet ca469f728b PORTS: Remove the Yopy PDA port
No official release was ever done for that platform. Production ceased
in 2005.
2017-12-19 07:37:08 +01:00
Bastien Bouclet 6eb9a48bbd EVENTS: Delay initializing the virtual keyboard
The virtual keyboard requires the backend to be fully initialized
because it needs the display size.

Fixes #10338.
2017-11-28 05:49:45 +01:00
Bastien Bouclet bc5ac6440c EVENTS: Fix one ms error in repeat event generation time check 2017-11-19 20:07:51 +01:00
Bastien Bouclet 8fc70ce37f SDL: Improve handling of SDL2 keyboard repeat events
- Flag them as repeat events
- Disable ScummVM's own repeat event generation

This fixes keyboard repeat events not being flagged as such with SDL2,
and complies with the user's operating system preferences regarding key
repeat timings.
2017-11-19 16:12:50 +01:00
Bastien Bouclet 7d811d356e EVENTS: Allow disabling repeat event generation 2017-11-19 16:12:50 +01:00
Bastien Bouclet 7539a77eeb EVENTS: Move key repeat handling to its own method 2017-11-19 16:12:50 +01:00