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)
- Allegro 5.2.2 Setup
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Micro freeze when I use "al_get_joystick_state"
- Font loading crashing with Allegro 5.2
- RPG Player
- Image Keyboard
Other recent discussions:
- Allegro 5.1.13 released!
- al_draw_bitmap_region does not return
- [A5.0.10] Critical Issue with Keyboard Locking Up Due to Joystick Event Handling
- Allegro Wait for Event(Pretty slow)
- Show and Remove Text with the same key
- All bullets firing when I press my fire key
- How to press more than one key at the same time on Allegro 5?
- ALLEGRO_KEYBOARD_STATE internal working
- Problem with Sprite
- How to reset keystate Allegro5?