logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

load_joystick_data - Loads joystick calibration data. Allegro game programming library.

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.

Name

       load_joystick_data - Loads joystick calibration data. Allegro game programming library.

Return Value

       Returns  zero  on  success: if it fails the joystick state is undefined and you must reinitialise it from
       scratch.

See Also

install_joystick(3alleg4), save_joystick_data(3alleg4), set_config_file(3alleg4)

Allegro                                           version 4.4.3                      load_joystick_data(3alleg4)

Synopsis

#include<allegro.h>intload_joystick_data(constchar*filename);

See Also