From 024930ec55981776ab4b952857fc3f82b714f72f Mon Sep 17 00:00:00 2001 From: waltje Date: Wed, 8 Nov 2017 16:16:06 -0500 Subject: [PATCH] Fix for MouseSystems mouse from TheCollector1995. --- src/mouse_serial.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mouse_serial.c b/src/mouse_serial.c index 64344815e..d3d567d23 100644 --- a/src/mouse_serial.c +++ b/src/mouse_serial.c @@ -10,7 +10,7 @@ * * Based on the 86Box Serial Mouse driver as a framework. * - * Version: @(#)mouse_serial.c 1.0.11 2017/11/04 + * Version: @(#)mouse_serial.c 1.0.12 2017/11/08 * * Author: Fred N. van Kempen, */ @@ -118,8 +118,6 @@ sermouse_poll(int x, int y, int z, int b, void *priv) ms->oldb = b; - if (ms->type == MOUSE_TYPE_MSYSTEMS) y = -y; - if (x>127) x = 127; if (y>127) y = 127; if (x<-128) x = -128; @@ -133,9 +131,9 @@ sermouse_poll(int x, int y, int z, int b, void *priv) buff[0] |= (b&0x02) ? 0x00 : 0x01; /* middle button */ buff[0] |= (b&0x04) ? 0x00 : 0x02; /* right button */ buff[1] = x; - buff[2] = y; + buff[2] = -y; buff[3] = x; /* same as byte 1 */ - buff[4] = y; /* same as byte 2 */ + buff[4] = -y; /* same as byte 2 */ len = 5; break;