The joyGetDevCaps function queries a joystick to determine its capabilities.
MMRESULT joyGetDevCaps(
UINT uJoyID,
LPJOYCAPS pjc,
UINT cbjc
);
Returns JOYERR_NOERROR if successful or one of the following error values:
Use the joyGetNumDevs function to determine the number of joystick devices supported by the driver.
Value | Description | |
---|---|---|
MMSYSERR_NODRIVER | The joystick driver is not present. | |
MMSYSERR_INVALPARAM | An invalid parameter was passed. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Joysticks Overview, Multimedia Joystick Functions, JOYCAPS, joyGetNumDevs