[PATCH 2.6.11.7 2/2] USB HID: Patch for Cherry CyMotion Linux keyboard

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

 



And here are the changes to support the extra keys...

diff -ur linux-2.6.11.7.orig/drivers/usb/input/hid-input.c linux/drivers/usb/input/hid-input.c --- linux-2.6.11.7.orig/drivers/usb/input/hid-input.c 2005-04-07 19:57:34.000000000 +0100 +++ linux/drivers/usb/input/hid-input.c 2005-04-18 13:36:16.000000000 +0100
@@ -270,6 +270,12 @@
 				case 0x227: map_key_clear(KEY_REFRESH);		break;
 				case 0x22a: map_key_clear(KEY_BOOKMARKS);	break;
 				case 0x238: map_rel(REL_HWHEEL);		break;
+ case 0x233: map_key_clear(KEY_SCROLLUP); break; + case 0x234: map_key_clear(KEY_SCROLLDOWN); break; + case 0x301: map_key_clear(KEY_PROG1); break; + case 0x302: map_key_clear(KEY_PROG2); break; + case 0x303: map_key_clear(KEY_PROG3); break; + case 0x279: map_key_clear(KEY_AGAIN); break;
 				default:    goto unknown;
 			}
 			break;

--
Andy Armstrong, hexten.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux