aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mousedev.c
diff options
context:
space:
mode:
authorMarton Nemeth <nm127@freemail.hu>2006-11-17 01:06:54 -0500
committerDmitry Torokhov <dtor@insightbb.com>2006-11-17 01:06:54 -0500
commit6c595fb12fa6c1fe382cc086fdade4acd93c643f (patch)
tree5e7d9ccdfec99179e70fc45294bd81c7a781d2b4 /drivers/input/mousedev.c
parent5b44f1aaee7e3b24f6e21662d7fef1534111a2df (diff)
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>
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r--drivers/input/mousedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index a22a74a2a3dc..664bcc8116fc 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -196,12 +196,12 @@ static void mousedev_key_event(struct mousedev *mousedev, unsigned int code, int
196 switch (code) { 196 switch (code) {
197 case BTN_TOUCH: 197 case BTN_TOUCH:
198 case BTN_0: 198 case BTN_0:
199 case BTN_FORWARD:
200 case BTN_LEFT: index = 0; break; 199 case BTN_LEFT: index = 0; break;
201 case BTN_STYLUS: 200 case BTN_STYLUS:
202 case BTN_1: 201 case BTN_1:
203 case BTN_RIGHT: index = 1; break; 202 case BTN_RIGHT: index = 1; break;
204 case BTN_2: 203 case BTN_2:
204 case BTN_FORWARD:
205 case BTN_STYLUS2: 205 case BTN_STYLUS2:
206 case BTN_MIDDLE: index = 2; break; 206 case BTN_MIDDLE: index = 2; break;
207 case BTN_3: 207 case BTN_3: