.\" Generated by the Allegro makedoc utility .TH load_joystick_data 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME load_joystick_data \- Loads joystick calibration data. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int load_joystick_data(const char *filename); .SH DESCRIPTION Restores calibration data previously stored by save_joystick_data() or the setup utility. This sets up all aspects of the joystick code: you don't even need to call install_joystick() if you are using this function. Pass a NULL filename to read the data from the currently selected configuration file. .SH "RETURN VALUE" Returns zero on success: if it fails the joystick state is undefined and you must reinitialise it from scratch. .SH SEE ALSO .BR install_joystick (3alleg4), .BR save_joystick_data (3alleg4), .BR set_config_file (3alleg4)