JSIsButtonAllocated3
Button number validation
Usage
#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.
Overview
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.
Releases
4 releases since Debian 3.0 (Woody); the text changed 1 time.