JOYCAPS

typedef struct {

WORD wMid;

WORD wPid;

CHAR szPname[MAXPNAMELEN];

UINT wXmin;

UINT wXmax;

UINT wYmin;

UINT wYmax;

UINT wZmin;

UINT wZmax;

UINT wNumButtons;

UINT wPeriodMin;

UINT wPeriodMax;

\\ The following members are not in previous versions

\\ of Windows.

UINT wRmin;

UINT wRmax;

UINT wUmin;

UINT wUmax;

UINT wVmin;

UINT wVmax;

UINT wCaps;

UINT wMaxAxes;

UINT wNumAxes;

UINT wMaxButtons;

CHAR szRegKey[MAXPNAMELEN];

CHAR szOEMVxD[MAXOEMVXD];

} JOYCAPS;

Contains information about the specified joystick's capabilities.

wMid

Manufacturer identifier.

wPid

Product identifier.

szPname

Null-terminated string that contains the joystick product name.

wXmin and wXmax

Minimum and maximum x-coordinate values.

wYmin and wYmax

Minimum and maximum y-coordinate values.

wZmin and wZmax

Minimum and maximum z-coordinate values.

wNumButtons

Number of joystick buttons.

wPeriodMin and wPeriodMax

Minimum and maximum polling frequencies supported once an application has captured a joystick.

wRmin and wRmax

Minimum and maximum rudder values. The rudder is the fourth axis of movement.

wUmin and wUmax

Minimum and maximum u-coordinate (fifth axis) values.

wVmin and wVmax

Minimum and maximum v-coordinate (sixth axis) values.

wCaps

Joystick capabilities. The following flags define individual capabilities that a joystick might have:

JOYCAPS_HASPOV

The joystick has point-of-view information.

JOYCAPS_HASR

The joystick has rudder (fourth axis) information.

JOYCAPS_HASU

The joystick has u-coordinate (fifth axis) information.

JOYCAPS_HASV

The joystick has v-coordinate (sixth axis) information.

JOYCAPS_HASZ

The joystick has z-coordinate information.

JOYCAPS_POV4DIR

The joystick point-of-view supports discrete values (centered, forward, backward, left, and right).

JOYCAPS_POVCTS

The joystick point-of-view supports continuous degree bearings.

wMaxAxes

Maximum number of axes the joystick supports.

wNumAxes

Number of axes currently in use by the joystick.

wMaxButtons

Maximum number of buttons the joystick supports.

szRegKey

Null-terminated string that contains the registry key for the joystick.

szOEMVxD

Null-terminated string that identifies the joystick driver OEM.