JSIsAxisAllocated(3)

JSIsAxisAllocated3

Axis number validation

Usage

#include <jsw.h>

int JSIsAxisAllocated(

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 JSIsAxisAllocated function checks if the given axis number n exists on the given jsd structure.

Return value

The JSIsAxisAllocated function returns zero if the axis does not exist or 1 if the axis does exist.

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.