JOYINFO
The JOYINFO structure contains information about the joystick position and button state.
typedef struct {
UINT wXpos;
UINT wYpos;
UINT wZpos;
UINT wButtons;
} JOYINFO;
Members
wXpos
Current X-coordinate.
wYpos
Current Y-coordinate.
wZpos
Current Z-coordinate.
wButtons
Current state of joystick buttons described by one or more of the following values:
Button | Description |
JOY_BUTTON1 | First joystick button is pressed. |
JOY_BUTTON2 | Second joystick button is pressed. |
JOY_BUTTON3 | Third joystick button is pressed. |
JOY_BUTTON4 | Fourth joystick button is pressed. |
Requirements
** Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
** Windows 95/98/Me:** Included in Windows 95 and later.
** Header:** Declared in Mmsystem.h; include Windows.h.
See Also