David Herrmann
61e00655e9
Input: introduce BTN/ABS bits for drums and guitars
...
There are a bunch of guitar and drums devices out there that all report
similar data. To avoid reporting this as BTN_MISC or ABS_MISC, we
allocate some proper namespace for them. Note that most of these devices
are toys and we cannot report any sophisticated physics via this API.
I did some google-images research and tried to provide definitions that
work with all common devices. That's why I went with 4 toms, 4 cymbals,
one bass, one hi-hat. I haven't seen other drums and I doubt that we need
any additions to that. Anyway, the naming-scheme is intentionally done in
an extensible way.
For guitars, we support 5 frets (normally aligned vertically, compared to
the real horizontal layouts), a single strum-bar with up/down directions,
an optional fret-board and a whammy-bar.
Most of the devices provide pressure values so I went with ABS_* bits. If
we ever support devices which only provide digital input, we have to
decide whether to emulate pressure data or add additional BTN_* bits.
If someone is not familiar with these devices, here are two pictures which
provide almost all introduced interfaces (or try the given keywords
with a google-image search):
Guitar: ("guitar hero world tour guitar")
http://images1.wikia.nocookie.net/__cb20120911023442/applezone/es/images/f/f9/Wii_Guitar.jpg
Drums: ("guitar hero drums")
http://oyster.ignimgs.com/franchises/images/03/55/35526_band-hero-drum-set-hands-on-20090929040735768.jpg
Signed-off-by: David Herrmann <dh.herrmann@gmail.com >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2013-09-04 10:44:16 +02:00
..
2013-05-17 14:31:05 -04:00
2013-05-02 11:58:41 -05:00
2013-07-03 11:54:50 -07:00
2013-06-05 18:41:23 +01:00
2013-05-05 17:36:20 -07:00
2013-07-03 19:55:33 -07:00
2013-05-11 16:12:44 -07:00
2013-05-06 15:41:42 -07:00
2013-05-09 10:15:46 -07:00
2013-04-29 20:09:03 +02:00
2013-06-25 15:34:44 +02:00
2013-07-03 19:56:35 -07:00
2013-06-10 10:46:18 -07:00
2013-07-01 11:17:08 +01:00
2013-06-26 16:21:06 +01:00
2013-04-29 16:23:34 -04:00
2013-07-02 13:43:38 -07:00
2013-05-14 10:23:57 +05:30
2013-06-19 01:02:50 +02:00
2013-07-03 16:31:35 -07:00
2013-05-07 19:46:02 -07:00
2013-05-29 15:50:34 -04:00
2013-07-03 16:07:42 -07:00
2013-05-07 22:27:15 -04:00
2013-07-03 16:07:43 -07:00
2013-04-29 15:40:23 -04:00
2013-05-08 10:13:35 -07:00
2013-05-08 10:13:35 -07:00
2013-07-03 16:07:39 -07:00
2013-05-15 14:42:15 -07:00
2013-07-03 16:07:29 -07:00
2013-07-02 20:04:25 -07:00
2013-04-30 17:04:01 -07:00
2013-06-15 20:23:53 -07:00
2013-04-30 15:21:02 -07:00
2013-05-02 09:03:55 -07:00
2013-05-09 13:46:38 -04:00
2013-04-29 18:28:13 -07:00
2013-06-19 12:58:42 +02:00
2013-05-20 12:27:59 -07:00
2013-05-31 11:32:30 +02:00
2013-06-12 16:29:44 -07:00
2013-06-27 21:51:09 +02:00
2013-06-11 13:42:38 +02:00
2013-05-01 17:51:54 -07:00
2013-04-29 18:28:19 -07:00
2013-06-29 12:57:36 +04:00
2013-05-12 14:16:21 +02:00
2013-06-03 13:55:01 -07:00
2013-06-03 20:20:29 +09:00
2013-05-10 14:37:17 +01:00
2013-07-03 14:35:40 -07:00
2013-05-01 16:36:22 +05:30
2013-07-03 16:07:42 -07:00
2013-04-30 17:04:02 -07:00
2013-06-12 13:47:38 +02:00
2013-06-11 07:39:26 +01:00
2013-07-03 16:07:41 -07:00
2013-05-07 18:38:27 -07:00
2013-04-29 18:28:40 -07:00
2013-05-28 15:03:04 +09:00
2013-05-01 17:31:42 -04:00
2013-06-10 22:23:32 -07:00
2013-06-06 12:41:57 -07:00
2013-06-17 16:38:57 -07:00
2013-06-19 20:30:32 -07:00
2013-05-12 14:16:22 +02:00
2013-04-30 17:04:00 -07:00
2013-07-03 16:07:29 -07:00
2013-06-19 14:16:47 +01:00
2013-04-29 18:28:41 -07:00
2013-06-29 12:57:13 +04:00
2013-05-09 20:14:25 -04:00
2013-05-09 20:10:22 -04:00
2013-04-29 18:28:13 -07:00
2013-06-10 13:45:49 -07:00
2013-04-30 10:09:06 +02:00
2013-07-22 16:16:40 +02:00
2013-07-04 10:29:23 -07:00
2013-07-03 16:07:32 -07:00
2013-06-03 14:09:14 -07:00
2013-04-29 13:54:36 -04:00
2013-05-08 11:51:05 -07:00
2013-06-05 12:00:27 -07:00
2013-06-12 00:56:27 -07:00
2013-06-19 23:16:50 -07:00
2013-05-02 12:10:19 +02:00
2013-04-29 15:54:37 -07:00
2013-05-01 08:12:58 -07:00
2013-06-17 16:38:57 -07:00
2013-06-25 11:48:24 +02:00
2013-06-06 10:23:58 +09:00
2013-05-29 10:57:11 +02:00
2013-07-01 08:12:41 -04:00
2013-06-12 23:02:35 -04:00
2013-06-12 23:02:35 -04:00
2013-05-13 09:45:01 -04:00
2013-04-29 15:42:02 -04:00
2013-07-02 16:19:24 -07:00
2013-04-30 17:04:06 -07:00
2013-05-16 07:55:07 -07:00
2013-04-30 17:04:02 -07:00
2013-07-03 13:21:40 -07:00
2013-07-03 16:07:43 -07:00
2013-06-06 14:05:23 -07:00
2013-05-05 10:58:06 -07:00
2013-05-31 17:31:52 -07:00
2013-06-12 16:29:47 -07:00
2013-07-03 16:07:26 -07:00
2013-06-01 22:24:07 +02:00
2013-06-01 21:37:09 +02:00
2013-07-03 16:07:38 -07:00
2013-07-03 16:07:32 -07:00
2013-07-03 16:07:40 -07:00
2013-09-04 10:44:16 +02:00
2013-05-28 11:31:16 -06:00
2013-06-26 12:10:56 +02:00
2013-06-26 12:10:56 +02:00
2013-07-03 16:08:05 -07:00
2013-04-29 18:28:44 -07:00
2013-05-02 07:34:58 -07:00
2013-06-26 13:42:54 -07:00
2013-05-23 11:58:55 +02:00
2013-05-01 15:00:24 -04:00
2013-05-06 17:24:22 -04:00
2013-04-29 15:54:36 -07:00
2013-05-04 14:47:26 -04:00
2013-05-08 09:55:05 -04:00
2013-05-19 20:29:55 +00:00
2013-05-02 21:50:38 +05:30
2013-05-19 20:30:10 +00:00
2013-05-07 11:22:14 -07:00
2013-06-11 11:41:51 -05:00
2013-07-03 16:07:32 -07:00
2013-04-29 15:54:28 -07:00
2013-07-03 16:07:31 -07:00
2013-06-26 15:55:52 -06:00
2013-05-17 14:12:06 -06:00
2013-06-26 21:10:05 +02:00
2013-06-16 16:12:26 -07:00
2013-07-02 16:17:25 -07:00
2013-05-07 20:16:25 -07:00
2013-07-03 16:08:03 -07:00
2013-06-03 13:59:03 -07:00
2013-06-03 21:49:52 +02:00
2013-05-05 13:23:27 -07:00
2013-06-19 12:55:10 +02:00
2013-05-22 01:34:24 +02:00
2013-05-01 17:29:47 -04:00
2013-05-01 17:29:39 -04:00
2013-07-01 18:10:48 +10:00
2013-04-29 15:54:28 -07:00
2013-05-07 18:38:27 -07:00
2013-06-02 20:53:59 -07:00
2013-05-28 22:47:13 -04:00
2013-06-10 13:45:52 -07:00
2013-06-10 13:45:52 -07:00
2013-06-10 13:45:52 -07:00
2013-06-30 12:40:03 +01:00
2013-04-30 17:04:09 -07:00
2013-04-29 19:14:20 -07:00
2013-05-24 16:22:50 -07:00
2013-07-03 16:08:05 -07:00
2013-07-03 16:08:05 -07:00
2013-04-29 18:28:22 -07:00
2013-05-30 09:20:20 +02:00
2013-07-03 16:08:02 -07:00
2013-06-17 16:38:57 -07:00
2013-05-12 21:32:38 +10:00
2013-05-20 11:47:21 -07:00
2013-06-17 18:09:53 +09:00
2013-05-01 17:51:54 -07:00
2013-06-25 16:07:44 -07:00
2013-05-06 09:24:16 +03:00
2013-07-03 16:07:22 -07:00
2013-04-29 13:21:30 -04:00
2013-06-06 11:52:14 -07:00
2013-06-19 12:58:42 +02:00
2013-06-20 19:02:45 +04:00
2013-06-10 13:45:25 -07:00
2013-04-30 17:04:03 -07:00
2013-04-30 15:50:12 +05:30
2013-06-21 00:35:12 +02:00
2013-07-03 16:07:32 -07:00
2013-06-12 16:29:46 -07:00
2013-06-12 16:29:44 -07:00
2013-05-09 09:40:49 -07:00
2013-05-14 20:54:06 +02:00
2013-05-21 12:25:02 -05:00
2013-06-20 22:24:32 -07:00
2013-06-17 12:55:11 -07:00
2013-06-17 12:55:11 -07:00
2013-05-20 10:24:22 +09:30
2013-06-05 16:48:40 -07:00
2013-05-20 12:16:01 +09:30
2013-07-03 16:07:30 -07:00
2013-04-29 15:54:38 -07:00
2013-04-29 15:54:37 -07:00
2013-05-27 10:57:53 +09:00
2013-05-31 11:31:50 +02:00
2013-07-02 09:52:47 -07:00
2013-07-03 16:07:41 -07:00
2013-07-02 09:16:42 -07:00