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:
- No Key-Up event received on Alt+Tab out (1)
- Using keyboard all over the place (1)
- [AL 5] Keyboard Inputs (1)
- Shooting Ball From Rotating Bitmap
- Mouse Click Inside Timer Function
- A shader that sets transparancy
- My second game, space invader simplified
- I'm new
- Keycode out of range
- Same code - slow on Windows, fast on Linux - timer fires too slow?
Other recent discussions:
- Game Crashing and I'm not sure why?
- letters are rendered in their seperated form, this may require glyph hook maybe?
- Enter charaters/numbers from Keypad
- get all pressed keys? (part two)
- To get shaders going.
- get all pressed keys?
- Weird flex with my Bitmaps on my Screen
- Upgrade from Allegro 5.0.10 to Allegro 5.2.5
- No windowed mode on Raspberry Pi Model B+?
- [A5] Keyboard state without a display