DOKK / manpages / debian 10 / allegro4-doc / JOYSTICK_STICK_INFO.3alleg4.en
JOYSTICK_STICK_INFO(3alleg4) Allegro manual JOYSTICK_STICK_INFO(3alleg4)

JOYSTICK_STICK_INFO - Stores joystick stick information. Allegro game programming library.

#include <allegro.h>

typedef struct JOYSTICK_STICK_INFO


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

Read chapter "Joystick routines" for a description on how to obtain/use this structure.

joy(3alleg4)

version 4.4.2 Allegro