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 - Linux: allow for custom joystick names
Summary: Linux: allow for custom joystick names
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 1.2
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 18:12 UTC by Paul Cercueil
Modified: 2020-09-22 02:07 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix the issue (1.70 KB, text/plain)
2020-01-13 18:12 UTC, Paul Cercueil
Details

Note You need to log in before you can comment on or make changes to this bug.
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