diff options
Diffstat (limited to 'src/devices/bus/sunmouse/hlemouse.cpp')
-rw-r--r-- | src/devices/bus/sunmouse/hlemouse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/sunmouse/hlemouse.cpp b/src/devices/bus/sunmouse/hlemouse.cpp index 0737f5e4702..9f3422188dc 100644 --- a/src/devices/bus/sunmouse/hlemouse.cpp +++ b/src/devices/bus/sunmouse/hlemouse.cpp @@ -264,11 +264,11 @@ void hle_device_base::check_inputs() // deal with wraparound if (0x0800 <= x_delta) x_delta -= 0x1000; - else if (-0x8000 >= x_delta) + else if (-0x0800 >= x_delta) x_delta += 0x1000; if (0x0800 <= y_delta) y_delta -= 0x1000; - else if (-0x8000 >= y_delta) + else if (-0x0800 >= y_delta) x_delta += 0x1000; // update state |