linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support
@ 2022-09-08 17:39 Nate Yocom
  2022-09-08 17:39 ` [PATCH v6 1/5] Input: joystick: xpad: Add X-Box Adaptive support Nate Yocom
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Nate Yocom @ 2022-09-08 17:39 UTC (permalink / raw)
  To: dmitry.torokhov
  Cc: nate, linux-input, linux-kernel, hadess, benjamin.tissoires

Adds support for the X-Box Adaptive Controller, which is protocol
compatible with the XTYPE_XBOXONE support in the driver with two deltas:

 - The X-Box button sets 0x02 as its activation ID, where others set
   0x01
 - The controller has an additional Profile button with 4 active states,
   which this change maps to an Axis control with 4 possible values

Patch series adds device to the supported table, adds support for the
Profile button, and adds support for the X-Box button as distinct
changes.

Signed-off-by: Nate Yocom <nate@yocom.org>

Nate Yocom (5):
  Input: joystick: xpad: Add X-Box Adaptive support
  Input: joystick: xpad: Add X-Box Adaptive XBox button
  Input: joystick: xpad: Add ABS_PROFILE to uapi
  Input: joystick: xpad: Add ABS_PROFILE to Docs
  Input: joystick: xpad: Add X-Box Adaptive Profile button

 v2: Fix warning Reported-by: kernel test robot <lkp@intel.com>
 v3: Break into multi-part and remove VID/PID check for XBox button
 v4: Rename Layer -> Profile as suggested by Bastien Nocera
 v5: Add new ABS_PROFILE axis to uapi and use it for the profile button
 v6: Add ABS_PROFILE to absolutes array and docs as requested by Dmitry

 Documentation/input/event-codes.rst    |  6 ++++++
 Documentation/input/gamepad.rst        |  6 ++++++
 drivers/hid/hid-debug.c                |  3 ++-
 drivers/input/joystick/xpad.c          | 15 ++++++++++++++-
 include/uapi/linux/input-event-codes.h |  1 +
 5 files changed, 29 insertions(+), 2 deletions(-)


base-commit: 26b1224903b3fb66e8aa564868d0d57648c32b15
-- 
2.30.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-09-29  1:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-08 17:39 [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-08 17:39 ` [PATCH v6 1/5] Input: joystick: xpad: Add X-Box Adaptive support Nate Yocom
2022-09-28  7:21   ` Mattijs Korpershoek
2022-09-08 17:39 ` [PATCH v6 2/5] Input: joystick: xpad: Add X-Box Adaptive XBox button Nate Yocom
2022-09-28  7:21   ` Mattijs Korpershoek
2022-09-08 17:39 ` [PATCH v6 3/5] Input: joystick: xpad: Add ABS_PROFILE to uapi Nate Yocom
2022-09-08 17:39 ` [PATCH v6 4/5] Input: joystick: xpad: Add ABS_PROFILE to Docs Nate Yocom
2022-09-08 17:39 ` [PATCH v6 5/5] Input: joystick: xpad: Add X-Box Adaptive Profile button Nate Yocom
2022-09-13 21:46 ` [PATCH v6 0/5] Input: joystick: xpad: Add X-Box Adaptive Controller support Nate Yocom
2022-09-28  2:36   ` Nate Yocom
2022-09-29  1:34 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).