save_joystick_data(3alleg)

save_joystick_data3alleg

Saves joystick calibration data. allegro game programming library.

Usage

#include <allegro.h>

int save_joystick_data(const char *filename);

Overview

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.

Return value

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

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.