man JOYSTICK_BUTTON_INFO () - Stores joystick button information. Allegro game programming library.
NAME
JOYSTICK_BUTTON_INFO - Stores joystick button information. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
typedef struct JOYSTICK_BUTTON_INFO
DESCRIPTION
   int b;                           - boolean on/off flag
   char *name;                      - description of this
                                      button
   
Read chapter "Joystick routines" for a description on how to obtain/use this structure.