diff options
| author | martin <martin@NetBSD.org> | 2020-06-20 13:55:30 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2020-06-20 13:55:30 +0000 |
| commit | 7d79e88db64cfbb1537b720c0a32d0c76aafaaa6 (patch) | |
| tree | cdbc6af8c8ac656548b39a410af657408150e42a | |
| parent | 02dff23202bd2b00281dad4e6de5425fcd2874be (diff) | |
Pull up following revision(s) (requested by tsutsui in ticket #955):
sys/arch/mac68k/dev/ams.c: revision 1.23
Fix inverted Y-axis value passed to wsmouse_input(9).
Note this is what src/sys/arch/macppc/dev/ams.c does as
"upward (moving the mouse forward) is positive" as noted in wsmouse(9):
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/macppc/dev/ams.c#rev1.4
Reported and tested by @NonameInsect on his SE/30 and Xorg server.
Should be pulled up to netbsd-8 and netbsd-9.
| -rw-r--r-- | sys/arch/mac68k/dev/ams.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/ams.c b/sys/arch/mac68k/dev/ams.c index 5a659a78b47..fa2ddfc4c93 100644 --- a/sys/arch/mac68k/dev/ams.c +++ b/sys/arch/mac68k/dev/ams.c @@ -1,4 +1,4 @@ -/* $NetBSD: ams.c,v 1.22 2013/10/19 16:23:17 martin Exp $ */ +/* $NetBSD: ams.c,v 1.22.34.1 2020/06/20 13:55:30 martin Exp $ */ /* * Copyright (C) 1998 Colin Wood @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ams.c,v 1.22 2013/10/19 16:23:17 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ams.c,v 1.22.34.1 2020/06/20 13:55:30 martin Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -506,7 +506,7 @@ ms_processevent(adb_event_t *event, struct ams_softc *amsc) if (amsc->sc_wsmousedev != NULL) /* wsmouse is attached? */ wsmouse_input(amsc->sc_wsmousedev, new_event.u.m.buttons, - new_event.u.m.dx, new_event.u.m.dy, 0, 0, + new_event.u.m.dx, -new_event.u.m.dy, 0, 0, WSMOUSE_INPUT_DELTA); #else /* do nothing */ ; |
