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

Add default bindings for some well-known controllers #19

Open
3 tasks
ghost opened this issue Jul 14, 2020 · 1 comment
Open
3 tasks

Add default bindings for some well-known controllers #19

ghost opened this issue Jul 14, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jul 14, 2020

  • DS4 gamepad
  • XBOX 360 gamepad
  • Hori arcade controllers
@ghost ghost added the enhancement New feature or request label Jul 14, 2020
@nightmareci
Copy link
Contributor

I have all three of those types of controllers (a DS4, a Logitech F310 XInput controller, and a Hori Real Arcade Pro. 3), so I can implement those three. I also suggest other XInput and DS3/DS4 arcade sticks, like the Mad Catz ones. From looking at a Mad Catz stick's layout, it appears the correct arcade-identical layout wouldn't match the layout appropriate for real XInput gamepads, so XInput arcade sticks will have to be handled specially; the same is true of my HRAP3 vs. a DS3 (HRAP3 is a PS3 controller). So I guess we should first check if an arcade controller is connected from a preset list, then default to regular gamepad layout otherwise.

Part of implementing this correctly is changing to separate SDL2 "joystick" input and "controller" input. "Joystick" is for any joystick device with numbered axes and buttons, "controller" is for XInput style controllers with the ability to use the named A/B/X/Y etc. buttons, or non-XInput controllers that SDL2 has built-in mappings to XInput controls for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant