JOYCAPS

The JOYCAPS structure contains the fields describing the joystick capabilities.

typedef struct joycaps_tag {

UINT wMid;

UINT wPid;

char szPname[MAXPNAMELEN];

UINT wXmin;

UINT wXmax;

UINT wYmin;

UINT wYmax;

UINT wZmin;

UINT wZmax;

UINT wNumButtons;

UINT wPeriodMin;

UINT wPeriodMax;

} JOYCAPS;

Fields

The JOYCAPS structure has the following fields:

wMid

Specifies the manufacturer ID of the joystick.

wPid

Specifies the product identification of the joystick.

szPname[MAXPNAMELEN]

Specifies the product name of the joystick. This information is stored as a null-terminated string.

wXmin

Specifies the minimum x-position value of the joystick.

wXmax

Specifies the maximum x-position value of the joystick.

wYmin

Specifies the minimum y-position value of the joystick.

wYmax

Specifies the maximum y-position value of the joystick.

wZmin

Specifies the minimum z-position value of the joystick.

wZmax

Specifies the maximum z-position value of the joystick.

wNumButtons

Specifies the number of buttons on the joystick.

wPeriodMin

Specifies the smallest polling interval supported when captured by joySetCapture.

wPeriodMax

Specifies the largest polling interval supported when captured by joySetCapture.