]> git.baikalelectronics.ru Git - kernel.git/commit
Input: joydev - don't classify the vmmouse as a joystick
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 20 May 2015 21:50:30 +0000 (14:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 21 May 2015 22:58:27 +0000 (15:58 -0700)
commit2b3ff518cffc3d2062f7e5a7396bb33591e7b7ce
treee50c1163a187d0e15ec600c9af211a1c902f21ae
parenta6946fcc38d6af795658fc19bc6757df6674f434
Input: joydev - don't classify the vmmouse as a joystick

Joydev is currently thinking some absolute mice are joystick, and that
messes up games in VMware guests, as the cursor typically gets stuck in
the top left corner.

Try to detect the event signature of a VMmouse input device and back off
for such devices. We're still incorrectly detecting, for example, the
VMware absolute USB mouse as a joystick, but adding an event signature
matching also that device would be considerably more risky, so defer that
to a later merge window.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joydev.c