aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-input.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 25d180a24fc4..eeba66513997 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -2,7 +2,7 @@
2 * $Id: hid-input.c,v 1.2 2002/04/23 00:59:25 rdamazio Exp $ 2 * $Id: hid-input.c,v 1.2 2002/04/23 00:59:25 rdamazio Exp $
3 * 3 *
4 * Copyright (c) 2000-2001 Vojtech Pavlik 4 * Copyright (c) 2000-2001 Vojtech Pavlik
5 * Copyright (c) 2006 Jiri Kosina 5 * Copyright (c) 2006-2007 Jiri Kosina
6 * 6 *
7 * HID to Linux Input mapping 7 * HID to Linux Input mapping
8 */ 8 */
@@ -532,6 +532,26 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
532 case 0x302: map_key_clear(KEY_PROG2); break; 532 case 0x302: map_key_clear(KEY_PROG2); break;
533 case 0x303: map_key_clear(KEY_PROG3); break; 533 case 0x303: map_key_clear(KEY_PROG3); break;
534 534
535 /* Reported on Logitech S510 wireless keyboard */
536 case 0x101f: map_key_clear(KEY_ZOOMIN); break;
537 case 0x1020: map_key_clear(KEY_ZOOMOUT); break;
538 case 0x1021: map_key_clear(KEY_ZOOMRESET); break;
539 /* this one is marked as 'Rotate' */
540 case 0x1028: map_key_clear(KEY_ANGLE); break;
541 case 0x1029: map_key_clear(KEY_SHUFFLE); break;
542 case 0x1041: map_key_clear(KEY_BATTERY); break;
543 case 0x1042: map_key_clear(KEY_WORDPROCESSOR); break;
544 case 0x1043: map_key_clear(KEY_SPREADSHEET); break;
545 case 0x1044: map_key_clear(KEY_PRESENTATION); break;
546 case 0x1045: map_key_clear(KEY_UNDO); break;
547 case 0x1046: map_key_clear(KEY_REDO); break;
548 case 0x1047: map_key_clear(KEY_PRINT); break;
549 case 0x1048: map_key_clear(KEY_SAVE); break;
550 case 0x1049: map_key_clear(KEY_PROG1); break;
551 case 0x104a: map_key_clear(KEY_PROG2); break;
552 case 0x104b: map_key_clear(KEY_PROG3); break;
553 case 0x104c: map_key_clear(KEY_PROG4); break;
554
535 default: goto ignore; 555 default: goto ignore;
536 } 556 }
537 break; 557 break;