Skip to content

GamePad: Wii U Pro Controller Support

David Herrmann linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 8 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2input: document gamepad API and add extra keycodesDocumentation/input/gamepad.txt include/uapi/linux/input.h+165 -08 replies
2/2HID: wiimote: support Nintendo Wii U Pro Controllerdrivers/hid/hid-wiimote-core.c drivers/hid/hid-wiimote-modules.c drivers/hid/hid-wiimote.h+320 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDmitry Torokhov
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] GamePad: Wii U Pro Controller Support

Hi

2nd revision of the pro-controller patches. The first patch introduces a gamepad-API documentation as discussed on the mailing-list. The second patch adds support for the Pro-Controller based on this gamepad-API.

Note that the 2nd patch depends on the 1st so they should go through the same maintainer's tree.

Regarding the Pro-Controller: The new data reports are handled as usual as a new wiimote-extension. However, we also add device-detection for it so we don't load all the other unavailable interfaces on it. This makes the gamepad behave like any other gamepad-driver without the wiimote specifics.
No user-space library is needed, but libxwiimote and xwiishow already include support for it (if someone wants to integrate it into existing wiimote apps).

Cheers
David

David Herrmann (2):
input: document gamepad API and add extra keycodes
HID: wiimote: support Nintendo Wii U Pro Controller

 Documentation/input/gamepad.txt   | 156 ++++++++++++++++++++
 drivers/hid/hid-wiimote-core.c    |  23 +++
 drivers/hid/hid-wiimote-modules.c | 295 ++++++++++++++++++++++++++++++++++++++
 drivers/hid/hid-wiimote.h         |   2 +
 include/uapi/linux/input.h        |   9 ++
 5 files changed, 485 insertions(+)
 create mode 100644 Documentation/input/gamepad.txt
Signature · 1 line
1.8.3.1