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

The JOYINFO structure has the following fields:

wXpos

Specifies the current x-position of joystick.

wYpos

Specifies the current y-position of joystick.

wZpos

Specifies the current z-position of joystick.

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.