[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: One-Button iMac mouse



I made the patch work now on one of my G4 iBooks and attached my patch for
the patch. It can be applied after the mac_click_0.2-2.6.16.diff patch.

However I don't understand completely how it works and why it worked
alright on the G3 iBook. So somebody who helps me making a clean patch out
of this hack is welcome.

cu, Magnum

-- 
Carl Magnus Rosenbaum M.A.                          Tel: 089 - 700 666 26
Administration - Programmierung - Weiterbildung     Fax: 089 - 700 666 86
http://cmr.forestfactory.de/                      Mobil: 0163 - 700 666 2
PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641
--- linux-2.6.17-rc4_orig/drivers/input/input.c	2006-05-17 15:41:00.000000000 +0200
+++ linux-2.6.17-rc4/drivers/input/input.c	2006-05-17 18:32:10.000000000 +0200
@@ -85,7 +85,10 @@
 				code = BTN_MIDDLE;
 #endif

-			if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value)
+			if (code > KEY_MAX || !!test_bit(code, dev->key) == value)
+				return;
+
+			if (!test_bit(code, dev->keybit) && code != BTN_RIGHT && code != BTN_MIDDLE)
 				return;

 			if (value == 2)

Reply to: