diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2008-01-14 07:08:27 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-01-28 08:51:23 -0500 |
commit | d7d32c815b938a8e98e93d881e6ec5da63bd0beb (patch) | |
tree | e1cf81c5dcf426ceeb281de988570e86382bd862 /drivers/hid/hid-input-quirks.c | |
parent | 85c985f46059107c4f4bf5f9e7807dbb646595db (diff) |
HID: Refactor MS Presenter 8K key mapping
Following the suggestion of Jonas, this patch maps the special keys of
the MS Presenter 8000 to targets that should allow for better re-mapping
according to individual use cases (i.e. I avoided hard-wiring to
standard keys). This time I also included the last missing key event
(switching back from presentation mode).
The optimal Xmodmap customization for using the Presenter with
OpenOffice now looks like this for me:
keycode 175 = Escape
keycode 179 = F5
keysym XF86Forward = Right
keysym XF86Back = Left
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r-- | drivers/hid/hid-input-quirks.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 9c4baf32dcfa..a870ba58faa3 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -145,10 +145,11 @@ static int quirk_microsoft_presenter_8k(struct hid_usage *usage, struct input_de | |||
145 | 145 | ||
146 | set_bit(EV_REP, input->evbit); | 146 | set_bit(EV_REP, input->evbit); |
147 | switch(usage->hid & HID_USAGE) { | 147 | switch(usage->hid & HID_USAGE) { |
148 | case 0xfd08: map_key_clear(KEY_RIGHT); break; | 148 | case 0xfd08: map_key_clear(KEY_FORWARD); break; |
149 | case 0xfd09: map_key_clear(KEY_LEFT); break; | 149 | case 0xfd09: map_key_clear(KEY_BACK); break; |
150 | case 0xfd0b: map_key_clear(KEY_PAUSE); break; | 150 | case 0xfd0b: map_key_clear(KEY_PLAYPAUSE); break; |
151 | case 0xfd0f: map_key_clear(KEY_F5); break; | 151 | case 0xfd0e: map_key_clear(KEY_CLOSE); break; |
152 | case 0xfd0f: map_key_clear(KEY_PLAY); break; | ||
152 | default: | 153 | default: |
153 | return 0; | 154 | return 0; |
154 | } | 155 | } |