diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-10-31 18:38:50 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-10-31 18:38:50 +0000 |
| commit | e2efc9becbf29d9f4a4102d080a4ab2b18f36a34 (patch) | |
| tree | e176a4c9e3fa398a65571ca6bcdf8768d19c5900 /sys/dev | |
| parent | 0a4c51f4234f19c90c95f0cc2796ae2c6417b72c (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/input/ums.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/input/ums.c b/sys/dev/usb/input/ums.c index 6679ea31734a..757a96a8b831 100644 --- a/sys/dev/usb/input/ums.c +++ b/sys/dev/usb/input/ums.c @@ -295,8 +295,11 @@ ums_intr_callback(struct usb_xfer *xfer, usb_error_t error) } if ((info->sc_flags & UMS_FLAG_T_AXIS) && - (id == info->sc_iid_t)) + (id == info->sc_iid_t)) { dt -= hid_get_data(buf, len, &info->sc_loc_t); + /* T-axis is translated into button presses */ + buttons_found |= (1UL << 5) | (1UL << 6); + } for (i = 0; i < info->sc_buttons; i++) { uint32_t mask; |
