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)
commit15397f153cfd69c2164c1fa593e26707ed1a3e72
treee50c1163a187d0e15ec600c9af211a1c902f21ae
parent412dbad2c7e273b48e8477247c74b2ad65c452d2
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