Input: mousedev - remap BTN_FORWARD from BTN_LEFT to BTN_MIDDLE
commit6c595fb12fa6c1fe382cc086fdade4acd93c643f
authorMarton Nemeth <nm127@freemail.hu>
Fri, 17 Nov 2006 06:06:54 +0000 (17 01:06 -0500)
committerDmitry Torokhov <dtor@insightbb.com>
Fri, 17 Nov 2006 06:06:54 +0000 (17 01:06 -0500)
tree5e7d9ccdfec99179e70fc45294bd81c7a781d2b4
parent5b44f1aaee7e3b24f6e21662d7fef1534111a2df
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>
drivers/input/mousedev.c