logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

save_joystick_data - Saves joystick calibration data. Allegro game programming library.

Description

       After  all  the headache of calibrating the joystick, you may not want to make your poor users repeat the
       process every time they run your program.  Call this function to save the joystick calibration data  into
       the  specified  configuration  file, from which it can later be read by load_joystick_data(). Pass a NULL
       filename to write the data to the currently selected configuration file.

Name

       save_joystick_data - Saves joystick calibration data. Allegro game programming library.

Return Value

       Returns zero on success, non-zero if the data could not be saved.

See Also

load_joystick_data(3alleg4), set_config_file(3alleg4)

Allegro                                           version 4.4.3                      save_joystick_data(3alleg4)

Synopsis

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

See Also