Install the keyboard interrupt handler
The function call in Listing 3 installs the Allegro keyboard interrupt handler.
Listing 3. Install the keyboard interrupt handler.
install_keyboard(); |
You must call this function before using any of the keyboard input routines.
Once you have set up the Allegro handler, you can no longer use operating system calls or C library functions to access the keyboard.