.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ALLEGRO_KEYBOARD_STATE" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP ALLEGRO_KEYBOARD_STATE - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include typedef struct ALLEGRO_KEYBOARD_STATE ALLEGRO_KEYBOARD_STATE; \f[R] .fi .SH DESCRIPTION .PP This is a structure that is used to hold a \[lq]snapshot\[rq] of a keyboard\[cq]s state at a particular instant. It contains the following publically readable fields: .IP \[bu] 2 display - points to the display that had keyboard focus at the time the state was saved. If no display was focused, this points to NULL. .PP You cannot read the state of keys directly. Use the function al_key_down(3alleg5).