jsisbuttonallocated(3)
NAME
JSIsButtonAllocated - Button number validation
SYNTAX
#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.
DESCRIPTION
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.