From 86b1e74b282d8277275b85c63ba25784b6d8ce99 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Wed, 7 Feb 2018 22:49:34 -0600 Subject: 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. --- backends/platform/sdl/psp2/psp2.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backends/platform/sdl/psp2') diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index 29be31f267..3034b6d886 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -81,6 +81,7 @@ void OSystem_PSP2::initBackend() { ConfMan.registerDefault("joystick_deadzone", 2); ConfMan.registerDefault("shader", 0); ConfMan.registerDefault("touchpad_mouse_mode", false); + ConfMan.registerDefault("frontpanel_touchpad_mode", false); if (!ConfMan.hasKey("fullscreen")) { ConfMan.setBool("fullscreen", true); @@ -100,6 +101,10 @@ void OSystem_PSP2::initBackend() { if (!ConfMan.hasKey("touchpad_mouse_mode")) { ConfMan.setBool("touchpad_mouse_mode", false); } + if (!ConfMan.hasKey("frontpanel_touchpad_mode")) { + ConfMan.setBool("frontpanel_touchpad_mode", false); + } + // Create the savefile manager if (_savefileManager == 0) -- cgit v1.2.3