al_get_joystick_state

void al_get_joystick_state(ALLEGRO_JOYSTICK *joy, ALLEGRO_JOYSTICK_STATE *ret_state)
Introduced in 5.0.0

Get the current joystick state.

See also: ALLEGRO_JOYSTICK_STATE, al_get_joystick_num_buttons, al_get_joystick_num_axes

Examples: ex_joystick_events, ex_joystick_hotplugging


Most helpful discussions:

Other recent discussions: