mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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 MFC after: 1 week
This commit is contained in:
parent
ff9eac2e6d
commit
2b5b3a0923
1 changed files with 2 additions and 2 deletions
|
|
@ -288,9 +288,9 @@ ums_intr_callback(struct usb_xfer *xfer, usb_error_t error)
|
|||
|
||||
/* 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue