Return-Path: <Olivier.Bornet@puck.ch>
Received: from mail.axiom.ch [213.221.158.30]
	by localhost with IMAP (fetchmail-6.1.0)
	for bol@localhost (single-drop); Tue, 28 Oct 2003 09:27:37 +0100 (CET)
Received: from obelix.spectraweb.ch (mailrelay03.sunrise.ch [194.158.229.31])
	by pop.axiomail.ch (8.11.6/8.11.6) with ESMTP id h9S8RPa28775
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:25 +0100
Received: from delta (adsl-62-167-40-36.adslplus.ch [62.167.40.36])
	by obelix.spectraweb.ch (8.12.9/8.12.6) with ESMTP id h9S8RXwZ024826
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:33 +0100
Received: from bol by delta with local (Exim 3.36 #1 (Debian))
	id 1AEPBz-0003W4-00
	for <olivier.bornet@smartdata.ch>; Tue, 28 Oct 2003 09:27:07 +0100
Resent-From: Olivier.Bornet@puck.ch
Resent-Date: Tue, 28 Oct 2003 09:27:06 +0100
Resent-Message-ID: <20031028082706.GC27228@puck.ch>
Resent-To: olivier.bornet@smartdata.ch
Received: from puck.ch [153.109.180.3]
	by localhost with IMAP (fetchmail-5.9.11)
	for bol@localhost (single-drop); Mon, 13 Oct 2003 08:19:12 +0200 (CEST)
Received: from duba05h05-0.dplanet.ch ([212.35.36.52])
	by puck.ch with esmtp (Exim 3.36 #1)
	id 1A8w3V-0005F2-00
	for Olivier.Bornet@puck.ch; Mon, 13 Oct 2003 08:19:45 +0200
Received: from delta (adsl-62-167-97-142.adslplus.ch [62.167.97.142])
	by duba05h05-0.dplanet.ch (8.12.10/8.12.10/2.00dplanet-smtp) with ESMTP id h9D6Jg5a013566;
	Mon, 13 Oct 2003 08:19:42 +0200
Received: from bol by delta with local (Exim 3.36 #1 (Debian))
	id 1A8w2R-0006cC-00; Mon, 13 Oct 2003 08:18:39 +0200
Date: Mon, 13 Oct 2003 08:18:39 +0200
From: Olivier Bornet <Olivier.Bornet@puck.ch>
To: Peter Klausler <peter@klausler.com>
Cc: Olivier Bornet <Olivier.Bornet@puck.ch>
Subject: Re: bthid 0.6 with logitech keyboard/mouse
Message-ID: <20031013061839.GB21217@puck.ch>
References: <20031012232755.GA21217@puck.ch>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL"
Content-Disposition: inline
In-Reply-To: <20031012232755.GA21217@puck.ch>
X-From: Olivier Bornet <Olivier.Bornet@puck.ch>
X-Url: http://puck.ch/
User-Agent: Mutt/1.5.4i
Sender: Olivier Bornet <Olivier.Bornet@puck.ch>
X-Virus-Scan: Scanned by TrashScan v0.09 running on delta
X-Spam-Status: No, hits=-6.2 required=5.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,REFERENCES,RESENT_TO,
	      USER_AGENT_MUTT
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)


--iFRdW5/EC4oqxDHL
Content-Type: multipart/mixed; boundary="KFztAG8eRSV9hGtP"
Content-Disposition: inline


--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello again,

> The attached patch correct this.

Forgot the patch. Here is it.

Good day.

		Olivier
--=20
Olivier Bornet                 |      fran=E7ais : http://puck.ch/f
Swiss Ice Hockey Results       |      english  : http://puck.ch/e
http://puck.ch/                |      deutsch  : http://puck.ch/g
Olivier.Bornet@puck.ch         |      italiano : http://puck.ch/i
Get my PGP-key at http://puck.ch/pgp or at http://wwwkeys.pgp.net

--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-bthid-0.6-for-lt.txt"
Content-Transfer-Encoding: quoted-printable

--- bthid-0.6-orig/hid.c	2003-04-29 22:00:53.000000000 +0200
+++ bthid-0.6/hid.c	2003-10-13 00:03:03.000000000 +0200
@@ -527,9 +527,12 @@
 		return;
=20
 	case 0x0009:	/* Buttons */
+
+                /* init */
+	        butt =3D BTN_LEFT;
+	 =20
 		switch (usage & 0xffff) {
 		case 0:	return;
-		default:
 		case 1:	butt =3D BTN_LEFT;	break;
 		case 2:	butt =3D BTN_RIGHT;	break;
 		case 3:	if (swap_buttons_2_5)	return;
@@ -537,6 +540,12 @@
 		case 4:	butt =3D BTN_SIDE;	break;
 		case 5:	butt =3D swap_buttons_2_5 ? BTN_MIDDLE : BTN_EXTRA;
 			break;
+		case 6:	return;  /* no definition in input.h ... */
+		case 7:	butt =3D BTN_FORWARD;	break;
+		case 8:	butt =3D BTN_BACK;	break;
+		default:
+		  printf ("Pb. handling 0x%04lx", usage & 0xffff);
+		  break;
 		}
 		buttmask =3D 1 << butt - BTN_MOUSE;
 		if (val && !(mouse_butt & buttmask)) {

--KFztAG8eRSV9hGtP--

--iFRdW5/EC4oqxDHL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/ikO/dj3R/MU9khgRAu5DAJ4xJektEjG82yNlVP5JwxpV9GWogACfVFEd
JS0Wpj8UZIJ+LZBQAA2rivk=
=Sa4z
-----END PGP SIGNATURE-----

--iFRdW5/EC4oqxDHL--

