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

Create default mapping for unknown control pads in SDL's controller database #9997

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

neilmunday
Copy link
Contributor

Updated SDL/SDLJoystick.cpp in response to #9987

Summary:

If a control pad is not found in SDL's game controller database then a default mapping (based on the Sony PlayStation 3 Dual Shock controller) will be created and added to the in-memory database. Note: this new mapping is temporary and is not written to the control pad database.

@hrydgard
Copy link
Owner

hrydgard commented Oct 4, 2017

Nice. The occasional wrong button mapping is better than it working at all for unknown joysticks. Only drawback I can see is that motivation for adding new known-good mappings might be smaller.. oh well.

@carlsmith
Copy link

Button mappings are easy to fix. The analogue sticks are the problem. There are third party apps that will map control pad inputs to keyboard keys reliably, and that works perfectly with PPSSPP, but they can only map the analogue sticks to binary keys or buttons, like D-pads.

At the moment, I can only use PPSSPP with games that work with a D-pad, like Wipeout, even though I'm using a pad with analogue sticks.

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.

3 participants