Input: xpad - update Xbox One Force Feedback Support
authorPierre-Loup A. Griffais <githubpublic@plagman.net>
Wed, 9 Dec 2015 21:40:37 +0000 (13:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 4 Jan 2016 19:39:46 +0000 (11:39 -0800)
commit2a6d7527b35cf987260800807e328d167aef22ac
tree3760bab1b66c9a561bb52eae8ff19d80d6eead0c
parent7fc595f4c02636eadaeeecfe7bbc45b57c173004
Input: xpad - update Xbox One Force Feedback Support

There's apparently a serial number woven into both input and output
packets; neglecting to specify a valid serial number causes the controller
to ignore the rumble packets.

The scale of the rumble was also apparently halved in the packets.

The initialization packet had to be changed to allow force feedback to
work.

see https://github.com/paroj/xpad/issues/7 for details.

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