al_mouse_button_down

bool al_mouse_button_down(const ALLEGRO_MOUSE_STATE *state, int button)
Introduced in 5.0.0

Return true if the mouse button specified was held down in the state specified. Unlike most things, the first mouse button is numbered 1.

See also: ALLEGRO_MOUSE_STATE, al_get_mouse_state, al_get_mouse_state_axis

Examples: ex_mouse


Most helpful discussions: