summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/bthidd
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bluetooth/bthidd')
-rw-r--r--usr.sbin/bluetooth/bthidd/hid.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/bthidd/hid.c b/usr.sbin/bluetooth/bthidd/hid.c
index 8c0db6c..c68865b 100644
--- a/usr.sbin/bluetooth/bthidd/hid.c
+++ b/usr.sbin/bluetooth/bthidd/hid.c
@@ -229,6 +229,17 @@ hid_interrupt(bthid_session_p s, uint8_t *data, int32_t len)
break;
switch (usage) {
+ case HUC_AC_PAN:
+ /* Horizontal scroll */
+ if (val < 0)
+ mouse_butt |= (1 << 5);
+ else
+ mouse_butt |= (1 << 6);
+
+ mevents ++;
+ val = 0;
+ break;
+
case 0xb5: /* Scan Next Track */
val = 0x19;
break;
OpenPOWER on IntegriCloud