1exkeys(3)                       Allegro manual                       exkeys(3)
2
3
4

NAME

6       exkeys  - How to get input from the keyboard in different ways. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       Example exkeys
14

DESCRIPTION

16       This program demonstrates how to access the keyboard.  The  first  part
17       shows  the basic use of readkey(). The second part shows how to extract
18       the ASCII value. Next come the scan codes.   The  fourth  test  detects
19       modifier  keys like alt or shift. The fifth test requires some focus to
20       be passed. The final step shows how to use the global key array to read
21       simultaneous  key  presses.   The last method to detect key presses are
22       keyboard callbacks.  This is  demonstrated  by  installing  a  keyboard
23       callback, which marks all pressed keys by drawing to a grid.
24
25

SEE ALSO

27       END_OF_FUNCTION(3),   END_OF_MAIN(3),   LOCK_FUNCTION(3),  SCREEN_H(3),
28       SCREEN_W(3),  acquire_screen(3),   allegro_error(3),   allegro_init(3),
29       allegro_message(3),  blit(3), clear_keybuf(3), clear_to_color(3), desk‐
30       top_palette(3), font(3), install_keyboard(3), install_timer(3), key(3),
31       key_shifts(3),       keyboard_lowlevel_callback(3),      keypressed(3),
32       makecol(3), readkey(3), rectfill(3), release_screen(3), rest(3),  scan‐
33       code_to_name(3),     screen(3),     set_gfx_mode(3),    set_palette(3),
34       textout_ex(3), textprintf_centre_ex(3), textprintf_ex(3),  ureadkey(3),
35       usprintf(3), ustrzncpy(3)
36
37
38
39Allegro                          version 4.4.3                       exkeys(3)
Impressum