1exjoy(3) Allegro manual exjoy(3)
2
3
4
6 exjoy - Detecting, calibrating and using joystick input. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 Example exjoy
14
16 This program uses the Allegro library to detect and read the value of a
17 joystick. The output of the program is a small target sight on the
18 screen which you can move. At the same time the program will tell you
19 what you are doing with the joystick (moving or firing).
20
21
23 BITMAP(3), END_OF_MAIN(3), SCREEN_H(3), SCREEN_W(3), allegro_error(3),
24 allegro_init(3), allegro_message(3), blit(3), calibrate_joystick(3),
25 calibrate_joystick_name(3), circle(3), clear_bitmap(3), clear_key‐
26 buf(3), create_bitmap(3), default_palette(3), destroy_bitmap(3), draw‐
27 ing_mode(3), font(3), install_joystick(3), install_keyboard(3), joy(3),
28 key(3), keypressed(3), num_joysticks(3), palette_color(3), poll_joy‐
29 stick(3), putpixel(3), readkey(3), screen(3), set_gfx_mode(3), set_pal‐
30 ette(3), textout_centre_ex(3), textprintf_centre_ex(3),
31 textprintf_ex(3)
32
33
34
35Allegro version 4.2.3 exjoy(3)