Commit 6c595fb12fa6c1fe382cc086fdade4acd93c643f
Committed by
Dmitry Torokhov
1 parent
5b44f1aaee
Exists in
master
and in
7 other branches
Input: mousedev - remap BTN_FORWARD from BTN_LEFT to BTN_MIDDLE
In mousedev the BTN_LEFT and BTN_FORWARD were mapped to mouse button 0, causing that the user space program cannot distinguish between them through /dev/input/mice. All mice have BTN_LEFT, but not all have BTN_MIDDLE (e.g. Clevo D410J laptop). Mapping BTN_FORWARD to mouse button 2 makes the BTN_FORWARD button useful on this laptop. Signed-off-by: Marton Nemeth <nm127@freemail.hu> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/input/mousedev.c
... | ... | @@ -196,12 +196,12 @@ |
196 | 196 | switch (code) { |
197 | 197 | case BTN_TOUCH: |
198 | 198 | case BTN_0: |
199 | - case BTN_FORWARD: | |
200 | 199 | case BTN_LEFT: index = 0; break; |
201 | 200 | case BTN_STYLUS: |
202 | 201 | case BTN_1: |
203 | 202 | case BTN_RIGHT: index = 1; break; |
204 | 203 | case BTN_2: |
204 | + case BTN_FORWARD: | |
205 | 205 | case BTN_STYLUS2: |
206 | 206 | case BTN_MIDDLE: index = 2; break; |
207 | 207 | case BTN_3: |