Install a joystick driver, returning true if successful.
bool al_install_joystick( void )
Uninstalls the active joystick driver.
void al_uninstall_joystick( void )
Return the number of joysticks on the system (depending on the OS this may not be accurate).
int al_num_joysticks( void )
Get a handle for joystick number NUM on the system.
ALLEGRO_JOYSTICK *al_get_joystick( int num )
Release a previously ‘gotten’ joystick object.
void al_release_joystick( ALLEGRO_JOYSTICK * joy )
Return the name of the given joystick.
const char *al_get_joystick_name( ALLEGRO_JOYSTICK * joy )
Return the number of “sticks” on the given joystick.
int al_get_num_joystick_sticks( const ALLEGRO_JOYSTICK * joy )
Return the flags of the given “stick”.
int al_get_joystick_stick_flags( const ALLEGRO_JOYSTICK * joy, int stick )
Return the name of the given “stick”.
const char *al_get_joystick_stick_name( const ALLEGRO_JOYSTICK * joy, int stick )
Return the number of axes on the given “stick”.
int al_get_num_joystick_axes( const ALLEGRO_JOYSTICK * joy, int stick )
Return the name of the given axis.
const char *al_get_joystick_axis_name( const ALLEGRO_JOYSTICK * joy, int stick, int axis )
Return the number of buttons on the joystick.
int al_get_num_joystick_buttons( const ALLEGRO_JOYSTICK * joy )
Return the name of the given button.
const char *al_get_joystick_button_name( const ALLEGRO_JOYSTICK * joy, int button )
Get the current joystick state.
void al_get_joystick_state( ALLEGRO_JOYSTICK * joy, ALLEGRO_JOYSTATE * ret_state )