JOYINFO


typedef struct joyinfo_tag {
    UINT  wXpos;
    UINT  wYpos;
    UINT  wZpos;
    UINT  wButtons;
} JOYINFO;

Contains joystick position and button status information.

wXpos, wYpos, wZpos

Current position of a joystick along the X, Y and Z axes. Values are expressed in logical units.

wButtons

Current status of joystick buttons. Zero or more of the following flags can be set:

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.