Docu updates

This commit is contained in:
Ingo Ruhnke 2008-11-06 15:41:12 +01:00
parent 758816276f
commit 8a1ca31f5b
4 changed files with 14 additions and 3 deletions

View file

@ -35,4 +35,8 @@ Other parts of the code are inspired or based on cwiid:
* L. Donnie Smith <wiimote@abstrakraft.org>
Chatpad USB Protocol Traces:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Jani Virta <jani.virta@iqit.fi>
# EOF #

View file

@ -79,8 +79,8 @@ Interface 0:
Interface 1:
Endpoint 3(in): Headset mic
Endpoint 4(out): Headset phone
Endpoint 5(in): Information comes in when Headset gets plugged in
Endpoint 5(out): UNKNOWN (maybe headset)
Endpoint 5(in): UNKNOWN (maybe headset)
Endpoint 5(out): Information comes in when Headset gets plugged in
Interface 2:
Endpoint 6(in): Chatpad
Interface 3:
@ -229,6 +229,10 @@ usb_control_msg()'s
0x41 0x0 0x1e 0x02 # Init part 2, not needed but log shows it
0x41 0x0 0x1f 0x02 # Init (without this, no led will work, so send before anything else)
Sending "0x41 0x0 0x1f 0x02" gives a reply of "0x08, 0x03, 0x01"
(chatpad) or "0x08, 0x03, 0x03" (chatpad + headset)
Xbox360 Guitar
==============

3
TODO
View file

@ -1,8 +1,11 @@
- using rumble in scripts doesn't work, since you can't reset rumble back to 0,0
- locate a USB device with a string or two
- thread away on all endpoints
- read from stdin on the main thread
- send output to file or so
usb -d 005:006 -c 5:in,5:out,6:in,7:in,8:out -o /tmp/out, else stdin
- print version number on normal use
More general button map support:

View file

@ -73,7 +73,7 @@ public:
unsigned int dummy6 :120; // always: 0x00, 0x00, 0x00, 0x06, 0xee, 0x10, 0x00, 0x00, 0x00, 0x00, 0x06, 0x83, 0x77, 0x01, 0x81
// --------------------------
unsigned int xacl_sign :8; // 0x02 or 0x01
unsigned int xacl_value :8
unsigned int xacl_value :8;
unsigned int y_acl_sign :8; // 0x02 or 0x01
unsigned int y_acl_value :8