This message is sent to get the current joystick position and button state information.
LPARAM lParam1
Specifies a far pointer to a JOYINFO structure.
LPARAM lParam2
Not used.
Return MMSYSERR_NOERROR if the driver successfully retrieves the information. Return JOYERR_UNPLUGGED if the joystick is unplugged.
The coordinate values returned in the JOYINFO structure should be mapped into the coordinate range identified by the driver. The minimum and maximum values for each axis are defined in the JOYCAPS structure, which your driver fills out in response to the JDD_GETDEVCAPS message.