aboutsummaryrefslogtreecommitdiff
path: root/backends/events/psp2sdl
diff options
context:
space:
mode:
authorrsn88872018-01-25 11:56:03 -0600
committerrsn88872018-01-25 11:57:31 -0600
commit3cc12c3da2a1502876284c9b4801432954fdcb09 (patch)
tree0dc9a2ff40891489d6cab6798bea42b3d823071c /backends/events/psp2sdl
parent38df276b25158a144ec715c20f90b9980b7bcfdc (diff)
downloadscummvm-rg350-3cc12c3da2a1502876284c9b4801432954fdcb09.tar.gz
scummvm-rg350-3cc12c3da2a1502876284c9b4801432954fdcb09.tar.bz2
scummvm-rg350-3cc12c3da2a1502876284c9b4801432954fdcb09.zip
PSP2: Always use direct touch on front touch panel
Diffstat (limited to 'backends/events/psp2sdl')
-rw-r--r--backends/events/psp2sdl/psp2sdl-events.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/events/psp2sdl/psp2sdl-events.cpp b/backends/events/psp2sdl/psp2sdl-events.cpp
index b2b9df7f09..3f447b7435 100644
--- a/backends/events/psp2sdl/psp2sdl-events.cpp
+++ b/backends/events/psp2sdl/psp2sdl-events.cpp
@@ -60,7 +60,7 @@ void PSP2EventSource::preprocessEvents(SDL_Event *event) {
SDL_TouchID port = event->tfinger.touchId;
if (port < SCE_TOUCH_PORT_MAX_NUM && port >= 0) {
// touchpad_mouse_mode off: use only front panel for direct touch control of pointer
- // touchpad_mouse_mode on: use both front and rear for indirect touch control
+ // touchpad_mouse_mode on: also enable rear touch with indirect touch control
// where the finger can be somewhere else than the pointer and still move it
if (port == 0 || ConfMan.getBool("touchpad_mouse_mode")) {
switch (event->type) {
@@ -119,7 +119,7 @@ void PSP2EventSource::preprocessFingerUp(SDL_Event *event) {
int x = _km.x / MULTIPLIER;
int y = _km.y / MULTIPLIER;
- if (!ConfMan.getBool("touchpad_mouse_mode") && port == 0) {
+ if (port == 0) {
convertTouchXYToGameXY(event->tfinger.x, event->tfinger.y, &x, &y);
}
@@ -170,7 +170,7 @@ void PSP2EventSource::preprocessFingerMotion(SDL_Event *event) {
int x = _km.x / MULTIPLIER;
int y = _km.y / MULTIPLIER;
- if (!ConfMan.getBool("touchpad_mouse_mode") && port == 0) {
+ if (port == 0) {
convertTouchXYToGameXY(event->tfinger.x, event->tfinger.y, &x, &y);
} else {
// for relative mode, use the pointer speed setting