aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/cursor.cpp
diff options
context:
space:
mode:
authorrsn88872018-01-04 06:02:19 -0600
committerrsn88872018-01-04 06:07:34 -0600
commit4e4a5892c81992ea1aa68a5867903cd87223b4f9 (patch)
tree4ebe2d614d422376fb5b03714ad856b8da1d8f18 /backends/platform/psp/cursor.cpp
parent231407206d91829980da18bfab2d0ae28b3fc9ad (diff)
downloadscummvm-rg350-4e4a5892c81992ea1aa68a5867903cd87223b4f9.tar.gz
scummvm-rg350-4e4a5892c81992ea1aa68a5867903cd87223b4f9.tar.bz2
scummvm-rg350-4e4a5892c81992ea1aa68a5867903cd87223b4f9.zip
PSP: support mouse speed/joy deadzone options and smooth cursor motion
Diffstat (limited to 'backends/platform/psp/cursor.cpp')
-rw-r--r--backends/platform/psp/cursor.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/backends/platform/psp/cursor.cpp b/backends/platform/psp/cursor.cpp
index 0760bd1354..376e7eb3e5 100644
--- a/backends/platform/psp/cursor.cpp
+++ b/backends/platform/psp/cursor.cpp
@@ -162,7 +162,7 @@ bool Cursor::increaseXY(int32 incX, int32 incY) {
int32 oldX = _x, oldY = _y;
- // adjust for differences in X and Y
+ // adjust for screen resolution
adjustXYForScreenSize(incX, incY);
_x += incX;
@@ -207,10 +207,6 @@ inline void Cursor::adjustXYForScreenSize(int32 &x, int32 &y) {
// resolutions and for x, which is wider.
int32 newX = x, newY = y;
- // adjust width movement to match height (usually around 1.5)
- if (_mouseLimitWidth >= _mouseLimitHeight + (_mouseLimitHeight >> 1))
- newX = newX + (newX >> 1);
-
if (_mouseLimitWidth >= 600) { // multiply by 2
newX <<= 1;
newY <<= 1;
@@ -218,16 +214,6 @@ inline void Cursor::adjustXYForScreenSize(int32 &x, int32 &y) {
newX = newX + (newX >> 1);
newY = newY + (newY >> 1);
}
-
- // Divide all movements by 8
- newX >>= 3;
- newY >>= 3;
-
- // Make sure we didn't destroy minimum movement
- if (!((x && !newX) || (y && !newY))) {
- x = newX;
- y = newY;
- }
}
// This is only called when we have a new screen