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

Support for composite gamepads #3518

Open
SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Open

Support for composite gamepads #3518

SDLBugzilla opened this issue Feb 11, 2021 · 1 comment
Milestone

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Linux, All

Comments on the original bug report:

On 2020-01-18 19:52:13 +0000, Paul Cercueil wrote:

Hi,

I'm the maintainer of OpenDingux which is the Linux distribution that runs on the GCW Zero and other compatible chinese emulation handhelds.

There, the face buttons are mapped to keyboard keys, mostly for legacy reasons, which appears as /dev/input/event1. There is also an analog stick, mapped to /dev/input/event2, and another handheld (RG350) has a second analog stick mapped to /dev/input/event3.

This setup somewhat works with SDL1 as it doesn't have the nice gamepad API and games didn't mind using keyboard keys with a button-less joystick. For SDL2 however, I would like the buttons and sticks to appear as a single gamepad since many games and apps won't work without it.

I see this as divisible into two tasks:

  1. Gamepad controller map should be able to map buttons from keyboard keys;
  2. Gamepad controller map should be able to map from more than one SDL_Joystick / SDL_Keyboard.

I know this is a big change, what do you think of it? Is that something that could be supported upstream?

On 2020-01-19 19:19:22 +0000, Sam Lantinga wrote:

Merging more than one physical device would be useful for the Nintendo Switch JoyCon controllers as well.

I don't have time to work on this, but it's definitely something that would be appreciated if you want to contribute.

@mirh
Copy link

mirh commented Aug 31, 2022

#4448

@slouken slouken removed the waiting Waiting on user response label Mar 3, 2024
@slouken slouken added this to the 3.2.0 milestone Mar 3, 2024
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

No branches or pull requests

3 participants