Skip to content

SDL 3: HORIPAD connection issues #13144

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

Open
Megamouse opened this issue May 29, 2025 · 1 comment
Open

SDL 3: HORIPAD connection issues #13144

Megamouse opened this issue May 29, 2025 · 1 comment
Milestone

Comments

@Megamouse
Copy link

Megamouse commented May 29, 2025

One of our users can't get the Nintendo HORIPAD to work on windows 11.

It fails to connect with "HIDAPI device disconnected while opening"

Here's the link to the code:
https://github.com/RPCS3/rpcs3/blob/2d9a24d1d6ef0682cfed9ee04d411a8caac9f15a/rpcs3/Input/sdl_pad_handler.cpp

I think this only happens after the gamepad was closed and we try to open it again.

To explain: The user can setup the device in a pad configuration dialog.
When the user exits the dialog, we close all the gamepads.
When the user then enters the dialog again, or plays a game, we open the configured gamepad again,
which is where the error occurs.

I also see this log message when the user closes the software:
app: Leaked SDL_Gamepad (0000015E15A85210)

@slouken
Copy link
Collaborator

slouken commented May 29, 2025

I just tested with testcontroller and it's working fine here:

Added HIDAPI device 'HORIPAD S' VID 0x0f0d, PID 0x00c1, bluetooth 0, version 1394, serial NONE, interface 0, interface_class 0, interface_subclass 0, interface_protocol 0, usage page 0x0001, usage 0x0005, path = \\?\HID#VID_0F0D&PID_00C1#9&18ccf4f2&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}, driver = SDL_JOYSTICK_HIDAPI_SWITCH (ENABLED)
Gamepad 6 added
Opened gamepad HORIPAD S, guid 0300910d0d0f0000c100000072056800, \\?\HID#VID_0F0D&PID_00C1#9&18ccf4f2&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

Are you able to create a standalone repro case, or adapt testcontroller to show the issue?

@slouken slouken added this to the 3.x milestone May 29, 2025
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

2 participants