Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

JOYINFO structure

The JOYINFO structure contains information about the joystick position and button state.

Syntax


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:

ButtonDescription
JOY_BUTTON1First joystick button is pressed.
JOY_BUTTON2Second joystick button is pressed.
JOY_BUTTON3Third joystick button is pressed.
JOY_BUTTON4Fourth joystick button is pressed.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

See also

Joysticks
Multimedia Joystick Structures
Joysticks
Multimedia Joystick Structures

 

 

Show: