The JOYCAPS structure contains information about the joystick capabilities.
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;
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[MAX_JOYSTICKOEMVXDNAME];
} JOYCAPS;
Flag | Description |
---|---|
JOYCAPS_HASZ | Joystick has z-coordinate information. |
JOYCAPS_HASR | Joystick has rudder (fourth axis) information. |
JOYCAPS_HASU | Joystick has u-coordinate (fifth axis) information. |
JOYCAPS_HASV | Joystick has v-coordinate (sixth axis) information. |
JOYCAPS_HASPOV | Joystick has point-of-view information. |
JOYCAPS_POV4DIR | Joystick point-of-view supports discrete values (centered, forward, backward, left, and right). |
JOYCAPS_POVCTS | Joystick point-of-view supports continuous degree bearings. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Unicode: Defined as Unicode and ANSI structures.
Joysticks Overview, Multimedia Joystick Structures, joySetCapture