exkeys man page on DragonFly
[printable version]
exkeys(3) Allegro manual exkeys(3)
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(3), END_OF_MAIN(3), LOCK_FUNCTION(3), SCREEN_H(3),
SCREEN_W(3), acquire_screen(3), allegro_error(3), allegro_init(3),
allegro_message(3), blit(3), clear_keybuf(3), clear_to_color(3), desk‐
top_palette(3), font(3), install_keyboard(3), install_timer(3), key(3),
key_shifts(3), keyboard_lowlevel_callback(3), keypressed(3),
makecol(3), readkey(3), rectfill(3), release_screen(3), rest(3), scan‐
code_to_name(3), screen(3), set_gfx_mode(3), set_palette(3),
textprintf_centre_ex(3), textprintf_ex(3), ureadkey(3), usprintf(3),
ustrzncpy(3)
Allegro version 4.4.2 exkeys(3)
[top]
List of man pages available for DragonFly
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|