Skip to content

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

Merged
hrydgard merged 3 commits into
hrydgard:masterfrom
klyoungblood:ps3-controller
Sep 4, 2016
Merged

hrydgard merged 3 commits into
hrydgard:masterfrom
klyoungblood:ps3-controller

Conversation

@klyoungblood

Copy link
Copy Markdown
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

hrydgard commented Sep 3, 2016

Copy link
Copy Markdown
Owner

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
Copy Markdown
Contributor Author

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

@klyoungblood

klyoungblood commented Sep 4, 2016 •

Copy link
Copy Markdown
Contributor Author

"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

hrydgard commented Sep 4, 2016

Copy link
Copy Markdown
Owner

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