mbox series

[0/4] input: Implement an API for trigger rumble motors

Message ID 20220410220449.5071-1-dbdaniel42@gmail.com (mailing list archive)
Headers show
Series input: Implement an API for trigger rumble motors | expand

Message

Daniel Bomar April 10, 2022, 10:04 p.m. UTC
This patchset extends the force feedback API to allow userspace to control
the force feedback motors underneath the triggers in some gamepads.

Patches 3 and 4 of this patchset implement this API in the xpad and
hid-microsoft drivers for the Xbox One controller over USB and bluetooth
respectively.

Daniel Bomar (4):
  input: uapi: Add trigger_left and trigger_right to ff_rumble_effect
    struct
  input: ff-memless: Add trigger left/right in ml_combine_effects
  input: xpad: Implement trigger rumble for Xbox One controllers
  input: hid-microsoft: Implement trigger rumble for Xbox One S over
    bluetooth

 drivers/hid/hid-microsoft.c   | 14 ++++++++++++--
 drivers/input/ff-memless.c    |  8 +++++++-
 drivers/input/joystick/xpad.c |  8 ++++++--
 include/uapi/linux/input.h    |  4 ++++
 4 files changed, 29 insertions(+), 5 deletions(-)