al_get_joystick_stick_flags(3alleg5)

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

πŸ’– al_get_joystick_stick_flags β€” Allegro 5 API πŸ’–

okay bestie, welcome to the al_get_joystick_stick_flags(3alleg5) page, straight out of the Allegro reference manual. yes this is a real function, yes it's in section 3alleg5, and yes we are going to understand it together. grab a snack πŸ“


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_get_joystick_stick_flags(ALLEGRO_JOYSTICK *joy, int stick)

🌸 DESCRIPTION 🌸

so basically? this one hands you back the flags of the β€œstick” you asked for. that's it, that's the whole vibe. πŸ’…

  • you pass in your ALLEGRO_JOYSTICK *joy and an int stick, and you get the flags of that given β€œstick”.
  • if the stick doesn’t exist, NULL is returned. no cap, that's literally what the page says.
  • and the indices? they begin from 0. zero-indexed, as all things should be πŸ‘‘
lowkey important: indices begin from 0, so your first stick is 0, not 1. don't be out here passing 1 and wondering why the universe is ignoring you 😭

πŸ‘€ SEE ALSO πŸ‘€


that's the whole page, babe, you ate it. 🫢 this was served fresh from the Allegro reference manual, al_get_joystick_stick_flags(3alleg5) β€” mwah, go forth and read your stick flags πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from