Skip to content

Set joystick button name for SDL game controllers - #1327

Merged
SiegeLord merged 1 commit into
liballeg:masterfrom
connorjclark:sdl-joy-names
Apr 10, 2022
Merged

Set joystick button name for SDL game controllers#1327
SiegeLord merged 1 commit into
liballeg:masterfrom
connorjclark:sdl-joy-names

Conversation

@connorjclark

Copy link
Copy Markdown
Contributor

SDL provides a function to map a button to a name, but only for SDL game controllers (not SDL joysticks). Allegro doesn't have a distinction between controllers/joysticks, which is fine. But when possible allegro can query SDL for the name of a button if supported.

@SiegeLord

Copy link
Copy Markdown
Member

Thanks!

@SiegeLord
SiegeLord merged commit 668a0a3 into liballeg:master Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants