| Summary: | Linux: allow for custom joystick names | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Paul Cercueil <paul> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 1.2 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: | Patch to fix the issue | ||
This patch is in. Thanks. http://hg.libsdl.org/SDL/rev/51ab3997c255 |
Created attachment 4159 [details] Patch to fix the issue When not using the old Linux input event interface, SDL parses the name of a device to know what it's capable of. It expects the name to match the following string: "Analog %d-axis %d-button %d-hat". This patch allows to use devices with a custom name. For instance: "My Joystick Device (Analog 2-axis 6-button 2-hat).