---
name: "JSGetAxisCoeffNZ"
section: "3"
platform: "linux"
package: "libjsw-dev"
version: "1:1.5.5-1+b1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/JSGetAxisCoeffNZ"
---

# JSGetAxisCoeffNZ(3)

Axis value retrieving

## NAME

JSGetAxisCoeffNZ - Axis value retrieving

## SYNTAX

\#include \<jsw.h\>

double JSGetAxisCoeffNZ(\
\
         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.

## DESCRIPTION

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

## RETURN VALUE

The JSGetAxisCoeffNZ function returns the coefficient value of the joystick axis number in a range of -1.0 to 1.0 or exactly 0.0 if the axis is within its null zone (if it has a null zone). The return value also does not make a distinction between success or error (error as if the axis was not valid).

## SEE ALSO

[JSIntro(3)](/JSIntro/3.md) [JSIsAxisAllocated(3)](/JSIsAxisAllocated/3.md) [JSUpdate(3)](/JSUpdate/3.md) [JSGetAxisCoeff(3)](/JSGetAxisCoeff/3.md)
