The JOYINFO structure contains information about the joystick position and button state.
typedef struct {
UINT wXpos;
UINT wYpos;
UINT wZpos;
UINT wButtons;
} JOYINFO;
| 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. | ||
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Joysticks Overview, Multimedia Joystick Structures