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

Andy Armstrong
2005-04-18T16:47:12Z

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;