Windows Multimedia DDK (mddkqh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
JDD_GETPOS
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
JDD_GETPOS
 
        This message is sent to get the current joystick position and
        button state information.
 
        LONG lParam1
            Specifies a far pointer to a JOYINFO structure.
 
        LONG 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.
 
                                       -♦-