HID: wiimote: support Nintendo Wii U Pro Controller
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 15 Jun 2013 13:32:45 +0000 (15:32 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 27 Jun 2013 09:57:49 +0000 (11:57 +0200)
commitb8e0fe31a7c8623741f91bc27f925220341fdf81
tree9dd36399fd722510dfe06c46ca5c9a74850f979d
parent701ba533f6587aaf402a9bb732548503263d2b23
HID: wiimote: support Nintendo Wii U Pro Controller

The Wii U Pro Controller is a new Nintendo remote device that looks very
similar to the XBox controller. It has nearly the same features and uses
the same protocol as the Wii Remote.

We add a new wiimote extension device so the Pro Controller is properly
detected and supported.

The device reports MP support, which is odd and I couldn't get it working,
yet. Hence, we disable MP registers for now. Further investigation is
needed to see what extra capabilities are provided.

There are some other unknown bits in the extension reports that I couldn't
figure out what they do. You can use hidraw to access these if you're
interested.

We might want to hook up the "charging" and "USB" bits to the battery
device so user-space can query whether it is currently charged via USB.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote-core.c
drivers/hid/hid-wiimote-modules.c
drivers/hid/hid-wiimote.h