Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2016 08:37:20 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r305830 - stable/9/sys/dev/usb/input
Message-ID:  <201609150837.u8F8bKdo079268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Sep 15 08:37:20 2016
New Revision: 305830
URL: https://svnweb.freebsd.org/changeset/base/305830

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/9/sys/dev/usb/input/ums.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/usb/input/ums.c
==============================================================================
--- stable/9/sys/dev/usb/input/ums.c	Thu Sep 15 08:35:46 2016	(r305829)
+++ stable/9/sys/dev/usb/input/ums.c	Thu Sep 15 08:37:20 2016	(r305830)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609150837.u8F8bKdo079268>