mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Mice with a lot of buttons (e.g. Logitech MX1000) generate button events greater than BTN_TASK.
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
(cherry picked from commit 0830676a0c)
This commit is contained in:
committed by
Peter Hutterer
parent
b125b834f4
commit
52fc8ee846
@@ -252,8 +252,15 @@ EvdevReadInput(InputInfoPtr pInfo)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (ev.code > BTN_TASK && ev.code < KEY_OK)
|
||||
if (ev.code > BTN_TASK && ev.code < KEY_OK) {
|
||||
/* Some fancy mice with a lot of buttons generate
|
||||
* button events between BTN_TASK and BTN_JOYSTICK */
|
||||
if (ev.code < BTN_JOYSTICK)
|
||||
xf86PostButtonEvent(pInfo->dev, 0,
|
||||
ev.code - BTN_LEFT + 5,
|
||||
value, 0, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
PostKbdEvent(pInfo, &ev, value);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user