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.
JOYINFO
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
JOYINFO
 
        The JOYINFO structure contains fields for storing joystick
        position and button state information.
 
        typedef struct joyinfo_tag {
            UINT wXpos;
            UINT wYpos;
            UINT wZpos;
            UINT wButtons;
        } JOYINFO;
 
Fields
        WORD wXpos
            Specifies the current x-position of joystick.
 
        WORD wYpos
            Specifies the current y-position of joystick.
 
        WORD wZpos
            Specifies the current z-position of joystick.
 
        WORD wButtons
            Specifies the current state of joystick buttons. It can be
            any combination of the following bit flags:
 
            JOY_BUTTON1
                Set if button 1 is pressed.
 
            JOY_BUTTON2
                Set if button 2 is pressed.
 
            JOY_BUTTON3
                Set if button 3 is pressed.
 
            JOY_BUTTON4
                Set if button 4 is pressed.
 
                                       -♦-