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.
Manufacturer identifier.
Product identifier.
Null-terminated string that contains the joystick product name.
Minimum and maximum x-coordinate values.
Minimum and maximum y-coordinate values.
Minimum and maximum z-coordinate values.
Number of joystick buttons.
Minimum and maximum polling frequencies supported once an application has captured a joystick.
Minimum and maximum rudder values. The rudder is the fourth axis of movement.
Minimum and maximum u-coordinate (fifth axis) values.
Minimum and maximum v-coordinate (sixth axis) values.
Joystick capabilities. The following flags define individual capabilities that a joystick might have:
The joystick has point-of-view information.
The joystick has rudder (fourth axis) information.
The joystick has u-coordinate (fifth axis) information.
The joystick has v-coordinate (sixth axis) information.
The joystick has z-coordinate information.
The joystick point-of-view supports discrete values (centered, forward, backward, left, and right).
The joystick point-of-view supports continuous degree bearings.
Maximum number of axes supported by the joystick.
Number of axes currently in use by the joystick.
Maximum number of buttons supported by the joystick.
Null-terminated string that contains the registry key for the joystick.
Null-terminated string that identifies the joystick driver OEM.