man JSUpdate (Fonctions bibliothèques) - Joystick device management and updating

NAME

JSUpdate - Joystick device management and updating

SYNTAX

#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.

DESCRIPTION

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).

SEE ALSO