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 specified button number n exists on the specified jsd structure.

RETURN VALUE

The JSIsButtonAllocated function returns 0 if the button does not exist or 1 if the button does exist.

SEE ALSO

JSIntro(3) JSIsAxisAllocated(3)