Provided by: allegro4-doc_4.4.2-10_all bug

NAME

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

SYNOPSIS

       #include <allegro.h>

       Example exkeys

DESCRIPTION

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

SEE ALSO

       END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), SCREEN_H(3alleg4),
       SCREEN_W(3alleg4), acquire_screen(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4),
       allegro_message(3alleg4), blit(3alleg4),  clear_keybuf(3alleg4),  clear_to_color(3alleg4),
       desktop_palette(3alleg4),             font(3alleg4),            install_keyboard(3alleg4),
       install_timer(3alleg4),                 key(3alleg4),                 key_shifts(3alleg4),
       keyboard_lowlevel_callback(3alleg4),         keypressed(3alleg4),        makecol(3alleg4),
       readkey(3alleg4),     rectfill(3alleg4),      release_screen(3alleg4),      rest(3alleg4),
       scancode_to_name(3alleg4),  screen(3alleg4),  set_gfx_mode(3alleg4), set_palette(3alleg4),
       textprintf_centre_ex(3alleg4),         textprintf_ex(3alleg4),          ureadkey(3alleg4),
       usprintf(3alleg4), ustrzncpy(3alleg4)