JDD_GETPOS

This message is sent to get the current joystick position and button state information.

Parameters

LPARAM lParam1

Specifies a far pointer to a JOYINFO structure.

LPARAM lParam2

Not used.

Return Value

Return MMSYSERR_NOERROR if the driver successfully retrieves the information. Return JOYERR_UNPLUGGED if the joystick is unplugged.

Comments

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.