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)
- Same code - slow on Windows, fast on Linux - timer fires too slow?
- 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?
Other recent discussions:
- 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
- First person camera using transformations
- Shader Puzzle aka Reverse Engineering cool effect
- al_get_keyboard_state error
- Allegro 5 basic game loop
- Checking if the Shift or Alt is pressed.
- Fluid object movement with gamepad stick [problem]