exjoy(3) Detecting, calibrating and using joystick input. Allegro game programming library.


#include <allegro.h>

Example exjoy


This program uses the Allegro library to detect and read the value of a joystick. The output of the program is a small target sight on the screen which you can move. At the same time the program will tell you what you are doing with the joystick (moving or firing).