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

NAME

6       d_keyboard_proc  - Invisible dialog procedure for implementing keyboard
7       shortcuts. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int d_keyboard_proc(int msg, DIALOG *d, int c);
14

DESCRIPTION

16       This is an invisible object for implementing  keyboard  shortcuts.  You
17       can  put an ASCII code in the key field of the dialog object (a characā€
18       ter such as 'a' to respond to a simple keypress, or a  number  1-26  to
19       respond  to  a  control key a-z), or you can put a keyboard scancode in
20       the d1 and/or d2 fields. When one of these keys is pressed, the  object
21       will  call  the  function  pointed to by dp. This should return an int,
22       which will be passed back to the  dialog  manager,  so  it  can  return
23       D_O_K, D_REDRAW, D_CLOSE, etc.
24
25

SEE ALSO

27       exgui(3)
28
29
30
31Allegro                          version 4.4.3              d_keyboard_proc(3)
Impressum