| Summary: | [Patch] hidapi: Use GameCube adapter controller port for player index | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Zack Middleton (zturtleman) <zack> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | Keywords: | target-2.0.10 |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | hidapi: Use GameCube adapter controller port for player index | ||
Tagging a bunch of bugs with "target-2.0.10" so we have a clear list of things to address before a 2.0.10 release. Please note that "addressing" one of these bugs might mean deciding to defer on it until after 2.0.10, or resolving it as WONTFIX, etc. This is just here to tell us we should look at it carefully, and soon. If you have new information or feedback on this issue, this is a good time to add it to the conversation, as we're likely to be paying attention to this specific report in the next few days/weeks. Thanks! --ryan. Patch added, thanks! https://hg.libsdl.org/SDL/rev/0411f841b035 |
Created attachment 3766 [details] hidapi: Use GameCube adapter controller port for player index The Nintendo USB GameCube adapter has four controller ports. The attached patch returns the port number as 0 to 3 from SDL_JoystickGetPlayerIndex() and SDL_JoystickGetDevicePlayerIndex(). It's mostly a copy-edit of the SDL HIDAPI InstanceIDForIndex() code. I'm interested in using this to display the controller port number in a game menu.