aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-wiimote.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-08-26 13:14:47 -0400
committerJiri Kosina <jkosina@suse.cz>2013-09-04 04:44:17 -0400
commit73f8645db1913ab2475ec3c1cee8d5f748963aa7 (patch)
tree5415151a1b7fc473459490d0d5dc2695089e981e /drivers/hid/hid-wiimote.h
parent61e00655e9cb82e034eb72b95a51072e718d14a7 (diff)
HID: wiimote: add support for Guitar-Hero drums
Guitar-Hero comes with a drums extension. Use the newly introduced input drums-bits to report this back to user-space. This is a usual extension like any other device. Nothing special to take care of. We report this to user-space as "Nintendo Wii Remote Drums". There are other drums (like "RockBand" drums) which we currently do not support and maybe will at some point. However, it is quite likely that we can report these via the same interface. This allows user-space to work with them without knowing the exact branding. I couldn't find anyone who owns a "RockBand" device, though. Initial-work-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-wiimote.h')
-rw-r--r--drivers/hid/hid-wiimote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-wiimote.h b/drivers/hid/hid-wiimote.h
index f1474f372c0b..6e18b55951fb 100644
--- a/drivers/hid/hid-wiimote.h
+++ b/drivers/hid/hid-wiimote.h
@@ -88,6 +88,7 @@ enum wiimote_exttype {
88 WIIMOTE_EXT_CLASSIC_CONTROLLER, 88 WIIMOTE_EXT_CLASSIC_CONTROLLER,
89 WIIMOTE_EXT_BALANCE_BOARD, 89 WIIMOTE_EXT_BALANCE_BOARD,
90 WIIMOTE_EXT_PRO_CONTROLLER, 90 WIIMOTE_EXT_PRO_CONTROLLER,
91 WIIMOTE_EXT_GUITAR_HERO_DRUMS,
91 WIIMOTE_EXT_NUM, 92 WIIMOTE_EXT_NUM,
92}; 93};
93 94
@@ -135,6 +136,7 @@ struct wiimote_state {
135 136
136 /* calibration data */ 137 /* calibration data */
137 __u16 calib_bboard[4][3]; 138 __u16 calib_bboard[4][3];
139 __u8 pressure_drums[7];
138}; 140};
139 141
140struct wiimote_data { 142struct wiimote_data {