JSUpdate(3)

JSUpdate3

Joystick device management and updating

Usage

#include <jsw.h>

int JSUpdate(

js_data_struct *jsd
)

Arguments

jsd

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

Overview

The JSUpdate function checks for changes in control positions of the joystick device specified in the jsd structure. If any changes are detected then the values in the jsd structure will be updated.

Return value

The JSUpdate function returns JSGotEvent if there were one or more control positions updated or JSNoEvent if there are no changes in control positions.

Changes can be retrieved from the jsd structure using JSGetAxisCoeffNZ(3), JSGetAxisCoeff(3), and JSGetButtonState(3).

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.