Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/arch/mac68k/dev Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/eddedbe47ff5
branches:  netbsd-9
changeset: 934914:eddedbe47ff5
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jun 20 13:55:30 2020 +0000

description:
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.

diffstat:

 sys/arch/mac68k/dev/ams.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2ea18284d8e4 -r eddedbe47ff5 sys/arch/mac68k/dev/ams.c
--- a/sys/arch/mac68k/dev/ams.c Sat Jun 20 13:53:14 2020 +0000
+++ b/sys/arch/mac68k/dev/ams.c Sat Jun 20 13:55:30 2020 +0000
@@ -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 @@
                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 */ ;



Home | Main Index | Thread Index | Old Index