svn commit: r305829 - stable/10/sys/dev/usb/input

Hans Petter Selasky hselasky at FreeBSD.org
Thu Sep 15 08:35:47 UTC 2016


Author: hselasky
Date: Thu Sep 15 08:35:46 2016
New Revision: 305829
URL: https://svnweb.freebsd.org/changeset/base/305829

Log:
  MFC r305590:
  Correctly map the USB mouse tilt delta values into buttons 5 and 6
  instead of 3 and 4 which is used for the scroll wheel, according to
  X.org.
  
  PR:		170358

Modified:
  stable/10/sys/dev/usb/input/ums.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/usb/input/ums.c
==============================================================================
--- stable/10/sys/dev/usb/input/ums.c	Thu Sep 15 08:34:16 2016	(r305828)
+++ stable/10/sys/dev/usb/input/ums.c	Thu Sep 15 08:35:46 2016	(r305829)
@@ -288,9 +288,9 @@ ums_intr_callback(struct usb_xfer *xfer,
 
 			/* translate T-axis into button presses until further */
 			if (dt > 0)
-				buttons |= 1UL << 3;
+				buttons |= 1UL << 5;
 			else if (dt < 0)
-				buttons |= 1UL << 4;
+				buttons |= 1UL << 6;
 
 			sc->sc_status.button = buttons;
 			sc->sc_status.dx += dx;


More information about the svn-src-all mailing list