1install_keyboard_hooks(3) Allegro manual install_keyboard_hooks(3)
2
3
4
6 install_keyboard_hooks - Installs custom keyboard hooks. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 void install_keyboard_hooks(int (*keypressed)(), int (*readkey)());
14
16 You should only use this function if you *aren't* using the rest of the
17 keyboard handler. It should be called in the place of install_key‐
18 board(), and lets you provide callback routines to detect and read key‐
19 presses, which will be used by the main keypressed() and readkey()
20 functions. This can be useful if you want to use Allegro's GUI code
21 with a custom keyboard handler, as it provides a way for the GUI to get
22 keyboard input from your own code, bypassing the normal Allegro input
23 system.
24
25
27 install_keyboard(3), keypressed(3), readkey(3)
28
29
30
31Allegro version 4.4.3 install_keyboard_hooks(3)