---
name: "JOYSTICK_INFO"
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/JOYSTICK_INFO"
---

# JOYSTICK\_INFO(3alleg)

Stores information about joysticks. Allegro game programming library.

## NAME

JOYSTICK\_INFO - Stores information about joysticks. Allegro game programming library.

## SYNOPSIS

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

**typedef struct JOYSTICK\_INFO**

## DESCRIPTION

```
   int flags;                       - status flags for this
                                      joystick
   int num_sticks;                  - how many stick inputs?
   int num_buttons;                 - how many buttons?
   JOYSTICK_STICK_INFO stick[n];    - stick state information
   JOYSTICK_BUTTON_INFO button[n];  - button state information
```

Read chapter "Joystick routines" for a description on how to obtain/use this structure.

## SEE ALSO

[**joy**(3alleg)](/joy/3alleg.md)
