diff options
author | Frank Praznik <frank.praznik@oh.rr.com> | 2015-05-05 20:47:33 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-07 04:41:36 -0400 |
commit | 4c3e829849cc05f82c11fe9a3c662c7e1323d6cf (patch) | |
tree | b2b2ccbaa977067329a43ca6498e9bbb7d653454 | |
parent | 221399b36535752351d4631606b427daca3dc35c (diff) |
HID: sony: Correct a typo in a HID descriptor comment and explain the odd Sixaxis axis mapping
Correct a spelling mistake in the Sixaxis HID descriptor comment.
Add an explanation as to why the Sixaxis has so many analog axes and why
some of them are seen as multi-touch axes.
Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-sony.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 937050971ccd..aeb8b41bc5b0 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c | |||
@@ -59,9 +59,16 @@ | |||
59 | 59 | ||
60 | #define MAX_LEDS 4 | 60 | #define MAX_LEDS 4 |
61 | 61 | ||
62 | /* | ||
63 | * The Sixaxis reports both digital and analog values for each button on the | ||
64 | * controller except for Start, Select and the PS button. The controller ends | ||
65 | * up reporting 27 axes which causes them to spill over into the multi-touch | ||
66 | * axis values. Additionally, the controller only has 20 actual, physical axes | ||
67 | * so there are several unused axes in between the used ones. | ||
68 | */ | ||
62 | static __u8 sixaxis_rdesc[] = { | 69 | static __u8 sixaxis_rdesc[] = { |
63 | 0x05, 0x01, /* Usage Page (Desktop), */ | 70 | 0x05, 0x01, /* Usage Page (Desktop), */ |
64 | 0x09, 0x04, /* Usage (Joystik), */ | 71 | 0x09, 0x04, /* Usage (Joystick), */ |
65 | 0xA1, 0x01, /* Collection (Application), */ | 72 | 0xA1, 0x01, /* Collection (Application), */ |
66 | 0xA1, 0x02, /* Collection (Logical), */ | 73 | 0xA1, 0x02, /* Collection (Logical), */ |
67 | 0x85, 0x01, /* Report ID (1), */ | 74 | 0x85, 0x01, /* Report ID (1), */ |