Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamecube controller support #49

Closed
GoogleCodeExporter opened this issue Jun 19, 2015 · 2 comments
Closed

Gamecube controller support #49

GoogleCodeExporter opened this issue Jun 19, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

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

Attachments:

@GoogleCodeExporter
Copy link
Author

Fixed in new 26/10/2013 version

Original comment by olimpier...@gmail.com on 28 Oct 2013 at 10:04

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by olimpier...@gmail.com on 31 Oct 2013 at 8:47

  • Changed state: Completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant