d_keyboard_proc(3)
β¨ NAME β¨
d_keyboard_proc β invisible dialog procedure for implementing keyboard shortcuts. It's part of the Allegro game programming library, and this page is from the Allegro manual, bestie: d_keyboard_proc(3). π«Ά
π SYNOPSIS π
#include <allegro.h>
int d_keyboard_proc(int msg, DIALOG *d, int c);
π DESCRIPTION π
okay so this is an invisible object for implementing keyboard shortcuts. periodt. β¨
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. That function should return an int, and that int will be passed back to the dialog manager, so it can return D_O_K, D_REDRAW, D_CLOSE, etc. π₯
π SEE ALSO π
source: Allegro Β· version: 4.4.3 Β· page: d_keyboard_proc(3) β mwah, bye bestie! πβ¨π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms