Date: Wed, 11 May 2011 19:06:09 +0000 (UTC) From: Maksim Yevmenkin <emax@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r221787 - stable/8/usr.sbin/bluetooth/bthidd Message-ID: <201105111906.p4BJ692Y002509@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emax Date: Wed May 11 19:06:09 2011 New Revision: 221787 URL: http://svn.freebsd.org/changeset/base/221787 Log: MFC r221448 Encode horizontal scroll events (AC Pan) as button presses (bit 5 and 6) Submitted by: David Demelier demelier dot david at gmail dot com Modified: stable/8/usr.sbin/bluetooth/bthidd/hid.c Directory Properties: stable/8/usr.sbin/bluetooth/bthidd/ (props changed) Modified: stable/8/usr.sbin/bluetooth/bthidd/hid.c ============================================================================== --- stable/8/usr.sbin/bluetooth/bthidd/hid.c Wed May 11 18:58:56 2011 (r221786) +++ stable/8/usr.sbin/bluetooth/bthidd/hid.c Wed May 11 19:06:09 2011 (r221787) @@ -229,6 +229,17 @@ hid_interrupt(bthid_session_p s, uint8_t 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105111906.p4BJ692Y002509>