Guitar controller

Talk about anything concerning the source code.
Post Reply
Binks
Posts: 4
Joined: Wed Feb 13, 2013 10:16 am
Location: Belgium

Guitar controller

Post by Binks »

Removed
Last edited by Binks on Mon Mar 25, 2013 1:52 pm, edited 1 time in total.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Guitar controller

Post 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.
GIMX creator
Binks
Posts: 4
Joined: Wed Feb 13, 2013 10:16 am
Location: Belgium

Re: Guitar controller

Post by Binks »

Removed
Last edited by Binks on Mon Mar 25, 2013 1:51 pm, edited 1 time in total.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Guitar controller

Post 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.
GIMX creator
Binks
Posts: 4
Joined: Wed Feb 13, 2013 10:16 am
Location: Belgium

Re: Guitar controller

Post by Binks »

Removed
Last edited by Binks on Mon Mar 25, 2013 1:51 pm, edited 1 time in total.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Guitar controller

Post 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.
GIMX creator
Binks
Posts: 4
Joined: Wed Feb 13, 2013 10:16 am
Location: Belgium

Re: Guitar controller

Post by Binks »

Removed
Post Reply