al_get_joystick_axis_name(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_get_joystick_axis_name β€” it's literally the Allegro 5 API function that tells you what a joystick axis is called, bestie πŸ’–


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

const char *al_get_joystick_axis_name(ALLEGRO_JOYSTICK *joy, int stick, int axis)

πŸŽ€ DESCRIPTION πŸŽ€

Okay so basically? You hand it a joystick, a stick, and an axis, and it hands you back the name of that axis. That's it. That's the whole vibe. πŸ¦‹

If the axis doesn't exist β€” like, it's just not there, it's giving nothing β€” then NULL gets returned. No axis, no name, no problem, we move on πŸ’…

And heads up: the indices begin from 0. Zero. Not one. Zero. Fr fr, count like a programmer, not like a person πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ


And that's the whole page, bestie 🫢 it lives in the Allegro reference manual, filed under al_get_joystick_axis_name(3alleg5), and it's giving Allegro 5, no cap βœ¨πŸŽ€ go name some axes, you ate πŸ’–

πŸ“¦ where this page comes from