al_get_joystick_button_name(3alleg5)

๐Ÿ“ฆ
version 5.2.11.3 ยท 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽฎ 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 ๐Ÿ”ฅ


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