al_key_down

bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode)
Introduced in 5.0.0

Return true if the key specified was held down in the state specified.

See also: ALLEGRO_KEYBOARD_STATE

Examples: ex_d3d, ex_drawpixels, ex_keyboard_focus, ex_lines, ex_mouse, ex_mouse_focus, ex_opengl_pixel_shader


Most helpful discussions:

Other recent discussions: