al_get_keyboard_state

void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state)
Introduced in 5.0.0

Save the state of the keyboard specified at the time the function is called into the structure pointed to by ret_state.

See also: al_key_down, 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: