---
name: "exjoy"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/exjoy"
---

# exjoy(3alleg)

Detecting, calibrating and using joystick input. Allegro game programming library.

## NAME

exjoy - Detecting, calibrating and using joystick input. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**Example exjoy**

## DESCRIPTION

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).

## SEE ALSO

[**BITMAP**(3alleg)](/BITMAP/3alleg.md), [**END\_OF\_MAIN**(3alleg)](/END_OF_MAIN/3alleg.md), [**SCREEN\_H**(3alleg)](/SCREEN_H/3alleg.md), [**SCREEN\_W**(3alleg)](/SCREEN_W/3alleg.md), [**allegro\_error**(3alleg)](/allegro_error/3alleg.md), [**allegro\_init**(3alleg)](/allegro_init/3alleg.md), [**allegro\_message**(3alleg)](/allegro_message/3alleg.md), [**blit**(3alleg)](/blit/3alleg.md), [**calibrate\_joystick**(3alleg)](/calibrate_joystick/3alleg.md), [**calibrate\_joystick\_name**(3alleg)](/calibrate_joystick_name/3alleg.md), [**circle**(3alleg)](/circle/3alleg.md), [**clear\_bitmap**(3alleg)](/clear_bitmap/3alleg.md), [**clear\_keybuf**(3alleg)](/clear_keybuf/3alleg.md), [**create\_bitmap**(3alleg)](/create_bitmap/3alleg.md), [**default\_palette**(3alleg)](/default_palette/3alleg.md), [**destroy\_bitmap**(3alleg)](/destroy_bitmap/3alleg.md), [**drawing\_mode**(3alleg)](/drawing_mode/3alleg.md), [**font**(3alleg)](/font/3alleg.md), [**install\_joystick**(3alleg)](/install_joystick/3alleg.md), [**install\_keyboard**(3alleg)](/install_keyboard/3alleg.md), [**joy**(3alleg)](/joy/3alleg.md), [**key**(3alleg)](/key/3alleg.md), [**keypressed**(3alleg)](/keypressed/3alleg.md), [**num\_joysticks**(3alleg)](/num_joysticks/3alleg.md), [**palette\_color**(3alleg)](/palette_color/3alleg.md), [**poll\_joystick**(3alleg)](/poll_joystick/3alleg.md), [**putpixel**(3alleg)](/putpixel/3alleg.md), [**readkey**(3alleg)](/readkey/3alleg.md), [**screen**(3alleg)](/screen/3alleg.md), [**set\_gfx\_mode**(3alleg)](/set_gfx_mode/3alleg.md), [**set\_palette**(3alleg)](/set_palette/3alleg.md), [**textout\_centre\_ex**(3alleg)](/textout_centre_ex/3alleg.md), [**textprintf\_centre\_ex**(3alleg)](/textprintf_centre_ex/3alleg.md), [**textprintf\_ex**(3alleg)](/textprintf_ex/3alleg.md)
