JSLoadCalibrationUNIX(3)

JSLoadCalibrationUNIX3

Unix calibration file loading

Usage

#include <jsw.h>

int JSLoadCalibrationUNIX(

js_data_struct *jsd
)

Arguments

jsd

Specifies the pointer to the joystick data structure.

Overview

The JSLoadCalibrationUNIX function loads the calibration data from the calibration file specified on the given jsd structure's jsd->calibration_file.

It looks for a device entry in the calibration file that matches the device specified by jsd->device_name. If that device is found then the axises and buttons defined in the calibration file will be allocated and their values loaded.

So additional axises and buttons may be allocated on the given jsd structure by this function if they are found.

Return value

The JSLoadCalibrationUNIX function returns zero on success or non-zero on error.

Releases

4 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–3.1
  2. 4.0–5.0

From libjsw-dev 1:1.5.5-1+b1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.