JOYSTICK_STICK_INFO(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ JOYSTICK_STICK_INFO ✨

bestie it's literally the JOYSTICK_STICK_INFO page from the Allegro manual, and it's here to spill the tea on how joystick sticks store their whole vibe πŸ’–


🌸 NAME 🌸

JOYSTICK_STICK_INFO β€” stores joystick stick information, and it's part of the Allegro game programming library πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

typedef struct JOYSTICK_STICK_INFO

πŸ’… DESCRIPTION πŸ’…

okay so this is the struct that holds everything about one lil stick, and here's every single field, no cap:

int flags;                       - status flags for this
                                   input
int num_axis;                    - how many axes do we
                                   have? (note the misspelling)
JOYSTICK_AXIS_INFO axis[n];      - axis state information
char *name;                      - description of this
                                   input

so real quick:

  • int flags; β€” the status flags for this input, lowkey doing the most behind the scenes πŸ‘‘
  • int num_axis; β€” how many axes do we have?? (and yes, note the misspelling, that's canon, don't come for me πŸ™ˆ)
  • JOYSTICK_AXIS_INFO axis[n]; β€” the axis state information, aka where the actual movement lives 🌈
  • char *name; β€” a description of this input, so it can tell you who it is 🫢

if you wanna know how to actually obtain and use this structure, go read the chapter "Joystick routines" β€” that's where the lore is πŸ“–βœ¨


πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page, you ate it πŸ’… Allegro, version 4.4.3, and the JOYSTICK_STICK_INFO(3) manual page β€” signing off, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from