1load_joystick_data(3) Allegro manual load_joystick_data(3)
2
3
4
6 load_joystick_data - Loads joystick calibration data. Allegro game pro‐
7 gramming library.
8
10 #include <allegro.h>
11
12
13 int load_joystick_data(const char *filename);
14
16 Restores calibration data previously stored by save_joystick_data() or
17 the setup utility. This sets up all aspects of the joystick code: you
18 don't even need to call install_joystick() if you are using this func‐
19 tion. Pass a NULL filename to read the data from the currently selected
20 configuration file.
21
23 Returns zero on success: if it fails the joystick state is undefined
24 and you must reinitialise it from scratch.
25
26
28 install_joystick(3), save_joystick_data(3), set_config_file(3)
29
30
31
32Allegro version 4.2.2 load_joystick_data(3)