Man Linux: Main Page and Category List

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 by installing  a  keyboard
       callback, which marks all pressed keys by drawing to a grid.

SEE ALSO

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