1ALLEGRO_KEYBOARD_STATE(3) ALLEGRO_KEYBOARD_STATE(3)
2
3
4
6 ALLEGRO_KEYBOARD_STATE - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 typedef struct ALLEGRO_KEYBOARD_STATE ALLEGRO_KEYBOARD_STATE;
12
14 This is a structure that is used to hold a "snapshot" of a keyboard's
15 state at a particular instant. It contains the following publically
16 readable fields:
17
18 ยท display - points to the display that had keyboard focus at the time
19 the state was saved. If no display was focused, this points to NULL.
20
21 You cannot read the state of keys directly. Use the function
22 al_key_down(3).
23
24
25
26Allegro reference manual ALLEGRO_KEYBOARD_STATE(3)