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:
- [A5] Xbox360 Controller Trigger buttons = only one axis? (1)
- Joystic Lag - false reading (1)
- Micro freeze when I use "al_get_joystick_state"
- Joysticks - How can I get more than one working
- [A5.0.10] Critical Issue with Keyboard Locking Up Due to Joystick Event Handling
- Illegal Function Call
- Player class not recognized
- Passing objects via functions
- Blank Screen
- Would just like some general feedback
Other recent discussions: