1al_get_joystick(3)         Library Functions Manual         al_get_joystick(3)
2
3
4

NAME

6       al_get_joystick
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              ALLEGRO_JOYSTICK * al_get_joystick(int num)
12

DESCRIPTION

14       Get a handle for a joystick on the system.  The number may be from 0 to
15       al_get_num_joysticks(3)–1.  If  successful  a  pointer  to  a  joystick
16       object is returned, which represents a physical device.  Otherwise NULL
17       is returned.
18
19       The handle and the index are only incidentally linked.  After al_recon‐
20       figure_joysticks(3) is called, al_get_joystick(3) may return handles in
21       a different order, and handles  which  represent  disconnected  devices
22       will not be returned.
23

SEE ALSO

25       al_get_num_joysticks(3),    al_reconfigure_joysticks(3),    al_get_joy‐
26       stick_active(3)
27
28
29
30Allegro reference manual                                    al_get_joystick(3)
Impressum