1ALLEGRO_JOYSTICK_STATE(3)                            ALLEGRO_JOYSTICK_STATE(3)
2
3
4

NAME

6       ALLEGRO_JOYSTICK_STATE - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              typedef struct ALLEGRO_JOYSTICK_STATE ALLEGRO_JOYSTICK_STATE;
12

DESCRIPTION

14       This  is  a structure that is used to hold a “snapshot” of a joystick’s
15       axes and buttons at a particular instant.  All fields public and  read-
16       only.
17
18              struct {
19                 float axis[num_axes];             // -1.0 to 1.0
20              } stick[num_sticks];
21              int button[num_buttons];             // 0 to 32767
22

SEE ALSO

24       al_get_joystick_state(3)
25
26
27
28Allegro reference manual                             ALLEGRO_JOYSTICK_STATE(3)
Impressum