d_keyboard_proc (3) - Linux Manuals
d_keyboard_proc: Invisible dialog procedure for implementing keyboard shortcuts. Allegro game programming library.
Command to display d_keyboard_proc
manual in Linux: $ man 3 d_keyboard_proc
NAME
d_keyboard_proc - Invisible dialog procedure for implementing keyboard shortcuts. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int d_keyboard_proc(int msg, DIALOG *d, int c);
DESCRIPTION
This is an invisible object for implementing keyboard shortcuts. You can
put an ASCII code in the key field of the dialog object (a character such
as 'a' to respond to a simple keypress, or a number 1-26 to respond to a
control key a-z), or you can put a keyboard scancode in the d1 and/or d2
fields. When one of these keys is pressed, the object will call the
function pointed to by dp. This should return an int, which will be
passed back to the dialog manager, so it can return D_O_K, D_REDRAW,
D_CLOSE, etc.
Pages related to d_keyboard_proc
- d_button_proc (3) - Dialog procedure implementing a button object. Allegro game programming library.
- d_check_proc (3) - Dialog procedure implementing a check box object. Allegro game programming library.
- d_ctext_proc (3) - Dialogs procedure drawing text onto the screen. Allegro game programming library.
- d_edit_proc (3) - Dialog procedure implementing an editable text object. Allegro game programming library.
- d_icon_proc (3) - Dialog procedure implementing a bitmap button. Allegro game programming library.
- d_list_proc (3) - Dialog procedure implementing a list box object. Allegro game programming library.