load_joystick_data(3alleg)

load_joystick_data3alleg

Loads joystick calibration data. allegro game programming library.

Usage

#include <allegro.h>

int load_joystick_data(const char *filename);

Overview

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.

Return value

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

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.