diff options
author | Lorenzo Castelli <lcastelli@gmail.com> | 2010-04-16 13:00:31 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-04-19 07:26:28 -0400 |
commit | 18392212932ecbdc71bc6a298ad301328eefb09d (patch) | |
tree | 10fe5656d933a5978d7335d5c35c69ec465ad1f2 /drivers/hid/hid-lg.c | |
parent | b5e5a37e36cd4d355b875665312d7aaae4e5833c (diff) |
HID: add mappings for a few keys found on Logitech MX3200
The keys are added to the generic wireless mappings in case other
keyboards use them. Note that the product ID for the MX3200 is the same
as USB_DEVICE_ID_S510_RECEIVER_2.
Signed-off-by: Lorenzo Castelli <lcastelli@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg.c')
-rw-r--r-- | drivers/hid/hid-lg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 3677c9037a11..f6433d8050a9 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c | |||
@@ -126,6 +126,9 @@ static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, | |||
126 | case 0x1004: lg_map_key_clear(KEY_VIDEO); break; | 126 | case 0x1004: lg_map_key_clear(KEY_VIDEO); break; |
127 | case 0x1005: lg_map_key_clear(KEY_AUDIO); break; | 127 | case 0x1005: lg_map_key_clear(KEY_AUDIO); break; |
128 | case 0x100a: lg_map_key_clear(KEY_DOCUMENTS); break; | 128 | case 0x100a: lg_map_key_clear(KEY_DOCUMENTS); break; |
129 | /* The following two entries are Playlist 1 and 2 on the MX3200 */ | ||
130 | case 0x100f: lg_map_key_clear(KEY_FN_1); break; | ||
131 | case 0x1010: lg_map_key_clear(KEY_FN_2); break; | ||
129 | case 0x1011: lg_map_key_clear(KEY_PREVIOUSSONG); break; | 132 | case 0x1011: lg_map_key_clear(KEY_PREVIOUSSONG); break; |
130 | case 0x1012: lg_map_key_clear(KEY_NEXTSONG); break; | 133 | case 0x1012: lg_map_key_clear(KEY_NEXTSONG); break; |
131 | case 0x1013: lg_map_key_clear(KEY_CAMERA); break; | 134 | case 0x1013: lg_map_key_clear(KEY_CAMERA); break; |
@@ -137,6 +140,7 @@ static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, | |||
137 | case 0x1019: lg_map_key_clear(KEY_PROG1); break; | 140 | case 0x1019: lg_map_key_clear(KEY_PROG1); break; |
138 | case 0x101a: lg_map_key_clear(KEY_PROG2); break; | 141 | case 0x101a: lg_map_key_clear(KEY_PROG2); break; |
139 | case 0x101b: lg_map_key_clear(KEY_PROG3); break; | 142 | case 0x101b: lg_map_key_clear(KEY_PROG3); break; |
143 | case 0x101c: lg_map_key_clear(KEY_CYCLEWINDOWS); break; | ||
140 | case 0x101f: lg_map_key_clear(KEY_ZOOMIN); break; | 144 | case 0x101f: lg_map_key_clear(KEY_ZOOMIN); break; |
141 | case 0x1020: lg_map_key_clear(KEY_ZOOMOUT); break; | 145 | case 0x1020: lg_map_key_clear(KEY_ZOOMOUT); break; |
142 | case 0x1021: lg_map_key_clear(KEY_ZOOMRESET); break; | 146 | case 0x1021: lg_map_key_clear(KEY_ZOOMRESET); break; |
@@ -147,6 +151,11 @@ static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, | |||
147 | case 0x1029: lg_map_key_clear(KEY_SHUFFLE); break; | 151 | case 0x1029: lg_map_key_clear(KEY_SHUFFLE); break; |
148 | case 0x102a: lg_map_key_clear(KEY_BACK); break; | 152 | case 0x102a: lg_map_key_clear(KEY_BACK); break; |
149 | case 0x102b: lg_map_key_clear(KEY_CYCLEWINDOWS); break; | 153 | case 0x102b: lg_map_key_clear(KEY_CYCLEWINDOWS); break; |
154 | case 0x102d: lg_map_key_clear(KEY_WWW); break; | ||
155 | /* The following two are 'Start/answer call' and 'End/reject call' | ||
156 | on the MX3200 */ | ||
157 | case 0x1031: lg_map_key_clear(KEY_OK); break; | ||
158 | case 0x1032: lg_map_key_clear(KEY_CANCEL); break; | ||
150 | case 0x1041: lg_map_key_clear(KEY_BATTERY); break; | 159 | case 0x1041: lg_map_key_clear(KEY_BATTERY); break; |
151 | case 0x1042: lg_map_key_clear(KEY_WORDPROCESSOR); break; | 160 | case 0x1042: lg_map_key_clear(KEY_WORDPROCESSOR); break; |
152 | case 0x1043: lg_map_key_clear(KEY_SPREADSHEET); break; | 161 | case 0x1043: lg_map_key_clear(KEY_SPREADSHEET); break; |