JSGetButtonState(3)

JSGetButtonState3

Button state retrieving

Usage

#include <jsw.h>

int JSGetButtonState(

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 JSGetButtonState function returns the state of the specified button n at its last updated state on the given jsd structure.

Return value

The JSGetButtonState function returns one of the following:

JSButtonStateOff

Specifies that the button is in its released state.

JSButtonStateOn

Specifies that the button is in its pressed state.

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.