JOYSTICK_INFO(3alleg4)

๐Ÿ’– NAME ๐Ÿ’–

okay so bestie, this is JOYSTICK_INFO(3alleg4) from the Allegro manual. It stores information about joysticks, and it's part of the Allegro game programming library. ๐ŸŽฎ๐Ÿ‘‘โœจ

๐ŸŽ€ SYNOPSIS ๐ŸŽ€

#include <allegro.h>

typedef struct JOYSTICK_INFO

๐ŸŒˆ DESCRIPTION ๐ŸŒˆ

This struct is literally the joystick info hub, and here are all the fields you're gonna see, no cap:

  • int flags; โ€” status flags for this joystick
  • int num_sticks; โ€” how many stick inputs?
  • int num_buttons; โ€” how many buttons?
  • JOYSTICK_STICK_INFO stick[n]; โ€” stick state information
  • JOYSTICK_BUTTON_INFO button[n]; โ€” button state information

Read chapter "Joystick routines" for a description on how to obtain/use this structure. ๐Ÿ“–๐Ÿ’ซ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


Allegro manual, version 4.4.3 โ€” source/version: Allegro 4.4.3. Date? The original footer didn't list one, so I'm not inventing one, bestie. That's all she wrote. ๐Ÿ’…๐Ÿซถ