What steps will reproduce the problem?
The sticks of Gamcube controller do not work.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
The gamecube controller support is broken.
There are some trivial bugs in the code of SDL_sysjoystick.c which do not allow
the Gamecube joystick axes to work.
I attached the corrected file.
I also fixed the L and R triggers of Wii classic and gamecube controllers. The
Triggers are mapped to the range 0-32768 of the relevant axes.
The gamecube controller ports are mapped as SDL joysticks 4-7.
The main stick is mapped as axis 0 and 1
The C stick is mapped as axis 2 and 3
L and R triggers are are mapped as axis 4 and 5 (only positive values)
D-PAD is mapped as joystick hat.
These is the button mapping:
BUTTON 0 = A,
BUTTON 1 = B,
BUTTON 2 = X,
BUTTON 3 = Y,
BUTTON 4 = Z,
BUTTON 5 = R,
BUTTON 6 = L,
BUTTON 7 = START
Please upload the file in the repository.
Original issue reported on code.google.com by olimpier...@gmail.com on 6 Oct 2013 at 12:25