Page 1 of 1

Guitar controller

Posted: Wed Feb 13, 2013 10:38 am
by Binks
Removed

Re: Guitar controller

Posted: Wed Feb 13, 2013 12:07 pm
by Matlo
The EMUPS3 directory contains unfinished code...

The source code for the PS3 DIY USB adapter is in the joystick-serial directory.
The first thing to do is to modify the joystick-serial/Descriptors.c file so that your teensy can enumerate as a guitar hero controller (in other words, "lsusb -vd 12ba:0100" should give the exact same result).
Once this is done, you will have to modify the USB_JoystickReport_Data_t structure in joystick-serial/Joystick.h so that it corresponds to the guitar hero controller report.
Finally you'll have to modify emuclient so that it sends the appropriate data format to the teensy (through the CP2102):
  • add a new report structure in report.h
  • add a new function in report.c
  • add a new controller type (add a value to e_controller_type in emuclient.h), and handle that new value in args.c and report.c
You may also have to do something with the second endpoint.

Re: Guitar controller

Posted: Wed Feb 13, 2013 2:29 pm
by Binks
Removed

Re: Guitar controller

Posted: Wed Feb 13, 2013 3:47 pm
by Matlo
Binks wrote:So the teensy report itself as an "Atmel Corp. LUFA Joystick Demo Application" to the PS3 and it works?
Yes, it works :)
Binks wrote:Then the Joystick.hex generated by the makefile is the PS3.hex that is downloadable from the wiki?
There's no such PS3.hex. The Joystick.hex file corresponds to the file from the firmwares-0.23.zip archive.

Re: Guitar controller

Posted: Fri Feb 22, 2013 5:17 pm
by Binks
Removed

Re: Guitar controller

Posted: Fri Feb 22, 2013 6:03 pm
by Matlo
The guitar controller seems to be a standard HID controller. In other words, it describes itself as a joystick, just like the DIY USB adapter.
A sixaxis is not a standard HID controller: it does not work with generic drivers in windows, and there are specific patches in the Linux kernel.

Changing the VID/PID is not enough, you need to change all the stuff I said above.

The PS3EMU work is in standby.

Re: Guitar controller

Posted: Fri Feb 22, 2013 7:07 pm
by Binks
Removed