JSGetAxisCoeff(3)

JSGetAxisCoeff3

Axis value retrieving

Usage

#include <jsw.h>

double JSGetAxisCoeff(

js_data_struct *jsd,

int n
)

Arguments

jsd

Specifies the pointer to the joystick data structure, which should have been set up by a prior call to JSInit.

n

Specifies the axis number.

Overview

The JSGetAxisCoeff function fetches the last updated value of the specified axis n on the jsd structure.

Return value

The JSGetAxisCoeff function returns the coefficient value of the joystick axis number in a range of -1.0 to 1.0 but does not take into account if the axis is currently within its null zone. The return value also does not make a distinction between success or error (error as if the axis was not valid).

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.