Structure for storing joystick capability information.
typedef struct joyinfo_tag {
WORD wMid;
WORD wPid;
char szPname[MAXPNAMELEN];
WORD wXmin;
WORD wXmax;
WORD wYmin;
WORD wYmax;
WORD wZmin;
WORD wZmax;
WORD wNumButtons;
WORD wPeriodMin;
WORD wPeriodMax;
} JOYCAPS;
The JOYCAPS structure has the following fields:
wMid
Specifies the manufacturer ID of the joystick. Manufacturer IDs are listed in Appendix B, “Manufacturer ID and Product ID Lists.”
wPid
Specifies the product ID of the joystick. Product IDs are listed in Appendix B, “Manufacturer ID and Product ID Lists.”
szPname[MAXPNAMELEN]
Specifies the product name of the joystick, 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.
joyGetDevCaps