We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4943

Summary: Linux: allow for custom joystick names
Product: SDL Reporter: Paul Cercueil <paul>
Component: joystickAssignee: 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

Description Paul Cercueil 2020-01-13 18:12:54 UTC
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).
Comment 1 Ozkan Sezer 2020-09-22 02:07:58 UTC
This patch is in. Thanks.
http://hg.libsdl.org/SDL/rev/51ab3997c255