The joyGetPosEx function queries a joystick for its position and button status.
Returns JOYERR_NOERROR if successful or one of the following error values.
Returns JOYERR_NOERROR if successful or one of the following error values.
MMSYSERR_NODRIVER - The joystick driver is not present. MMSYSERR_INVALPARAM - An invalid parameter was passed. Windows 95/98/Me: The specified joystick identifier is invalid. MMSYSERR_BADDEVICEID - Windows 95/98/Me: The specified joystick identifier is invalid. JOYERR_UNPLUGGED - The specified joystick is not connected to the system. JOYERR_PARMS - Windows NT/2000/XP: The specified joystick identifier is invalid.
This function provides access to extended devices such as rudder pedals, point-of-view hats, devices with a large number of buttons, and coordinate systems using up to six axes. For joystick devices that use three axes or fewer and have fewer than four buttons, use the joyGetPos function.
Winmm Class | Tao.Platform.Windows Namespace