Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2004 11:34:10 +0300
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        David Scheidt <dmschei@attglobal.net>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: bluetooth mouse sucess, mostly
Message-ID:  <1104050050.1184.4.camel@localhost>
In-Reply-To: <41CE0B5E.4020103@attglobal.net>
References:  <41CE0B5E.4020103@attglobal.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
÷ ÓÂ, 25/12/2004 × 19:52 -0500, David Scheidt ÐÉÛÅÔ:
> I got a bluetooth mouse for Christmas, and have gotten it to work on 
> 5.3-STABLE.   An include in
> src/usr.sbin/bluetooth/bthidd/parser.y has to be changed from 
> libusbhid.h to usbhid.h to get to get it to build.  After that, it 
> pretty much just works.  Except clicking the right-most button does what 
> clicking the wheel should do, and vice versa.  I don't think I see 
> anything that's changed in the sources in -CURRENT to make a difference 
> in that behavior.  Is my mouse poorly behaved, and sending the wrong 
> events?  It's a Kensington Pocket mouse; further detail available if 
> it's wanted. 

There is hack in attachment to swap 2nd and 3rd button.

> Great work, Max!
> 
> 
> 
> Thanks,
> 
> David
> _______________________________________________
> freebsd-bluetooth@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth
> To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.org"
-- 
Vladimir B. Grebenchikov
vova@fbsd.ru

[-- Attachment #2 --]
--- usr.sbin/bluetooth/bthidd/hid.c.orig	Sun Dec 26 11:32:30 2004
+++ usr.sbin/bluetooth/bthidd/hid.c	Tue Dec 21 13:16:20 2004
@@ -357,7 +357,7 @@
 		mi.u.data.x = mouse_x;
 		mi.u.data.y = mouse_y;
 		mi.u.data.z = mouse_z;
-		mi.u.data.buttons = mouse_butt;
+		mi.u.data.buttons = (mouse_butt & (~0x6)) | ((mouse_butt & 0x2) << 1)  | ((mouse_butt & 0x4) >> 1);
 
 		if (ioctl(s->srv->cons, CONS_MOUSECTL, &mi) < 0)
 			syslog(LOG_ERR, "Could not process mouse events from " \
help

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