Rechercher une page de manuel
JSGetAxisCoeff
Langue: en
Version: 119172 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
JSGetAxisCoeff - Axis value retrieving
SYNTAX
#include <jsw.h>
double JSGetAxisCoeff(
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.
DESCRIPTION
The JSGetAxisCoeff function fetches the last updated value of the specified axis n on the jsd structure.
RETURN VALUE
The JSGetAxisCoeff function returns the coefficient value of the joystick axis number in a range of -1.0 to 1.0 but does not take into account if the axis is currently within its null zone. The return value also does not make a distinction between success or error (error as if the axis was not valid).
SEE ALSO
JSIntro(3) JSIsAxisAllocated(3) JSUpdate(3) JSGetAxisCoeffNZ(3)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre