[Scummvm-git-logs] scummvm master -> d516833aefa76f05225b2464bcf95c59abfa3f70
citral23
noreply at scummvm.org
Sun Nov 13 12:28:19 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d516833aef OPENDINGUX: Reduce default cursor speed (#4422)
Commit: d516833aefa76f05225b2464bcf95c59abfa3f70
https://github.com/scummvm/scummvm/commit/d516833aefa76f05225b2464bcf95c59abfa3f70
Author: Gleb Mazovetskiy (glex.spb at gmail.com)
Date: 2022-11-13T13:28:16+01:00
Commit Message:
OPENDINGUX: Reduce default cursor speed (#4422)
The default cursor speed is too fast to navigate the menus and
pixel-hunt. Reduces the default speed to 2 ("8") to make it manageable.
Also makes the cursor speed configurable from the UI.
Changed paths:
backends/platform/sdl/opendingux/opendingux.cpp
diff --git a/backends/platform/sdl/opendingux/opendingux.cpp b/backends/platform/sdl/opendingux/opendingux.cpp
index d0feda7b913..459133c1fe0 100644
--- a/backends/platform/sdl/opendingux/opendingux.cpp
+++ b/backends/platform/sdl/opendingux/opendingux.cpp
@@ -73,7 +73,7 @@ static const Common::AxisTableEntry odJoystickAxes[] = {
Common::KeymapperDefaultBindings *OSystem_SDL_Opendingux::getKeymapperDefaultBindings() {
Common::KeymapperDefaultBindings *keymapperDefaultBindings = new Common::KeymapperDefaultBindings();
- if (!Posix::assureDirectoryExists(JOYSTICK_DIR)) {
+ if (!Posix::assureDirectoryExists(JOYSTICK_DIR)) {
keymapperDefaultBindings->setDefaultBinding(Common::kGlobalKeymapName, "VMOUSEUP", "JOY_UP");
keymapperDefaultBindings->setDefaultBinding(Common::kGlobalKeymapName, "VMOUSEDOWN", "JOY_DOWN");
keymapperDefaultBindings->setDefaultBinding(Common::kGlobalKeymapName, "VMOUSELEFT", "JOY_LEFT");
@@ -134,6 +134,9 @@ void OSystem_SDL_Opendingux::initBackend() {
if (!ConfMan.hasKey("opl_driver")) {
ConfMan.set("opl_driver", "db");
}
+ if (!ConfMan.hasKey("kbdmouse_speed")) {
+ ConfMan.setInt("kbdmouse_speed", 2);
+ }
#ifdef LEPUS
if (!ConfMan.hasKey("output_rate")) {
ConfMan.set("output_rate", "22050");
@@ -161,12 +164,15 @@ Common::String OSystem_SDL_Opendingux::getDefaultLogFileName() {
}
bool OSystem_SDL_Opendingux::hasFeature(Feature f) {
- if (f == kFeatureFullscreenMode)
- return false;
- if (f == kFeatureAspectRatioCorrection)
+ switch (f) {
+ case kFeatureFullscreenMode:
+ case kFeatureAspectRatioCorrection:
return false;
-
- return OSystem_SDL::hasFeature(f);
+ case kFeatureKbdMouseSpeed:
+ return true;
+ default:
+ return OSystem_SDL::hasFeature(f);
+ }
}
void OSystem_SDL_Opendingux::setFeatureState(Feature f, bool enable) {
More information about the Scummvm-git-logs
mailing list