logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

install_keyboard_hooks - Installs custom keyboard hooks. Allegro game programming library.

Description

       You  should  only  use this function if you *aren't* using the rest of the keyboard handler. It should be
       called in the place of install_keyboard(), and lets you provide callback  routines  to  detect  and  read
       keypresses,  which  will  be used by the main keypressed() and readkey() functions. This can be useful if
       you want to use Allegro's GUI code with a custom keyboard handler, as it provides a way for  the  GUI  to
       get keyboard input from your own code, bypassing the normal Allegro input system.

Name

       install_keyboard_hooks - Installs custom keyboard hooks. Allegro game programming library.

See Also

install_keyboard(3alleg4), keypressed(3alleg4), readkey(3alleg4)

Allegro                                           version 4.4.3                  install_keyboard_hooks(3alleg4)

Synopsis

#include<allegro.h>voidinstall_keyboard_hooks(int(*keypressed)(),int(*readkey)());

See Also