OSDN Git Service

HID: wiimote: add support for Guitar-Hero devices
authorNicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
Wed, 20 Jun 2018 10:55:15 +0000 (12:55 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 Jun 2018 13:26:06 +0000 (15:26 +0200)
commitd4bdf2d2ba737c2c02ec014bdc2db40a030595d0
treed18fa5634b270af13f021472874c55f37bd42f19
parentfdea70d26a471e002f2afc3a48821323b699f1e6
HID: wiimote: add support for Guitar-Hero devices

This adds the drums and guitar extensions for Wiimote devices.

Devices are reported as "Nintendo Wii Remote Guitar/Drums". If I ever
get my hands on "RockBand" guitars, I will try to report them via the
same interface so user-space does not have to bother which device it
deals with.

This is a rebase of the original commits 8e22ecb603c8 and 73f8645db191.
They were reverted several years ago, since they were dependent on the
ABS_* rework of the input core. Sadly, this never worked out so these
commits were never pushed into a release. This rebase now uses the
ABS_HAT* event codes to report all pressure information.

Signed-off-by: Nicolas.Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
(Original commits by Nicolas, adapted to v4.18 by David)
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
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