al_get_joystick_button_name(3alleg5)
๐ฎ al_get_joystick_button_name(3alleg5) ๐ฎ
okay bestie, welcome to the Allegro reference manual โจ we're about to get a joystick button's name and it's literally not that deep, but it is iconic.
โจ NAME โจ
al_get_joystick_button_name โ Allegro 5 API
๐ SYNOPSIS ๐
#include <allegro5/allegro.h>
const char *al_get_joystick_button_name(ALLEGRO_JOYSTICK *joy, int button)
๐ DESCRIPTION ๐
This one returns the name of the given button, bestie. You pass in a ALLEGRO_JOYSTICK *joy and an int button, and it gives you back that button's name.
If the button doesnโt exist, NULL is returned. no name, just NULL, okay?
Indices begin from 0 ๐ so the first button index is 0, periodt.
๐ฅ SEE ALSO ๐ฅ
al_get_joystick_stick_name(3alleg5)al_get_joystick_axis_name(3alleg5)al_get_joystick_num_buttons(3alleg5)
mwah ๐ that's the whole page. source/version vibe: Allegro reference manual, function al_get_joystick_button_name(3alleg5) โ and the footer didn't print a date, so no date to give you. bye bestie ๐ซถ๐
๐ฆ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 ยท Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 ยท Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 ยท Zlib
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms