[Scummvm-git-logs] scummvm branch-2-8 -> e90a369a033cbaeaab377e7508e0f543424a6535

rsn8887 noreply at scummvm.org
Wed Feb 21 01:25:53 UTC 2024


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:
e90a369a03 BACKENDS: (PSP) Improve analog stick pointer control


Commit: e90a369a033cbaeaab377e7508e0f543424a6535
    https://github.com/scummvm/scummvm/commit/e90a369a033cbaeaab377e7508e0f543424a6535
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2024-02-20T19:25:02-06:00

Commit Message:
BACKENDS: (PSP) Improve analog stick pointer control

Changed paths:
    backends/platform/psp/input.cpp


diff --git a/backends/platform/psp/input.cpp b/backends/platform/psp/input.cpp
index 33fe53263fc..c43786f351e 100644
--- a/backends/platform/psp/input.cpp
+++ b/backends/platform/psp/input.cpp
@@ -279,6 +279,11 @@ bool Nub::getEvent(Common::Event &event, PspEvent &pspEvent, SceCtrlData &pad) {
 	analogStepX = modifyNubAxisMotion(analogStepX);
 	analogStepY = modifyNubAxisMotion(analogStepY);
 
+	if (analogStepX == 0)
+		_hiresX = 0;
+	if (analogStepY == 0)
+		_hiresY = 0;
+
 	int32 speedFactor = 25;
 	switch (ConfMan.getInt("kbdmouse_speed")) {
 	// 0.25 keyboard pointer speed




More information about the Scummvm-git-logs mailing list