JSLoadCalibrationUNIX(3)

NAME

JSLoadCalibrationUNIX - UNIX calibration file loading

SYNTAX

#include <jsw.h>

int JSLoadCalibrationUNIX(
        js_data_struct *jsd
)

ARGUMENTS

jsd Specifies the pointer to the joystick data structure.

DESCRIPTION

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 0 on success or non-zero on error.

SEE ALSO

JSIntro(3) JSLoadDeviceNamesUNIX(3)