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

Adds --PS3 comand line option for PS3 controller support on SDL. #8949

Merged
merged 3 commits into from
Sep 4, 2016

Conversation

klyoungblood
Copy link
Contributor

Per the request at the forum thread here http://forums.ppsspp.org/showthread.php?tid=20003 I've added support for a --PS3 runtime option to support the PS3 controller's default Linux mappings in the PPSSPP interface.

@hrydgard
Copy link
Owner

hrydgard commented Sep 3, 2016

I wonder why the PS3 controller gets such a strange default mapping.

Is there a way to detect the PS3 controller instead? Otherwise I suppose we'll have to live with something like this.

@klyoungblood
Copy link
Contributor Author

I will check tonight if SDL_JoystickName() returns something we can use to auto-detect a PS3 controller.

@klyoungblood
Copy link
Contributor Author

klyoungblood commented Sep 4, 2016

"PLAYSTATION(R)3 Controller" is a pretty distinctive ID string. It wasn't difficult to match it, but I had to delay control mapping slightly (till after joystick detection). I've kept the --PS3 flag just in case there's an edge case where autodetection fails.

@hrydgard
Copy link
Owner

hrydgard commented Sep 4, 2016

Ain't pretty, but that's great that you managed autodetection :)

@hrydgard hrydgard merged commit 2f69bfb into hrydgard:master Sep 4, 2016
@klyoungblood klyoungblood deleted the ps3-controller branch September 10, 2016 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants