JSIsButtonAllocated(3)

JSIsButtonAllocated3

Button number validation

Usage

#include <jsw.h>

int JSIsButtonAllocated(

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 button number.

Overview

The JSIsButtonAllocated function checks if the given button number n exists on the given jsd structure.

Return value

The JSIsButtonAllocated function returns zero if the button does not exist or 1 if the button 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.