]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: xpad - x360w: report dpad as buttons and axes
authorPavel Rojtberg <rojtberg@gmail.com>
Sat, 10 Oct 2015 16:33:52 +0000 (09:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Oct 2015 18:27:29 +0000 (11:27 -0700)
commit5ee8bda943de20017636845a5c8d7069a4a283b8
tree13ca011930ccc0ceba6984ffaa3dab6f8326b51e
parent060081529c64cfa9baa2748a4b949159e700da0d
Input: xpad - x360w: report dpad as buttons and axes

as discussed here[0], x360w is the only pad that maps dpad_to_button.
This is bad for downstream developers as they have to differ between
x360 and x360w which is not intuitive.

This patch implements the suggested solution of exposing the dpad both
as axes and as buttons. This retains backward compatibility with software
already dealing with the difference while makes new software work as
expected across x360/ x360w pads.

[0] http://www.spinics.net/lists/linux-input/msg34421.html

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c