Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
joystick/linux: Allow for custom joystick names
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)" Signed-off-by: Paul Cercueil <paul@crapouillou.net> --- src/joystick/linux/SDL_sysjoystick.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
- Loading branch information