MM_JOY1BUTTONDOWN

The MM_JOY1BUTTONDOWN message notifies the window that has captured joystick JOYSTICKID1 that a button has been pressed.

MM_JOY1BUTTONDOWN 
fwButtons = wParam; 
xPos = LOWORD(lParam); 
yPos = HIWORD(lParam); 

Parameters

fwButtons

Identifies the button that has changed state and the buttons that are pressed. It can be one of the following:

JOY_BUTTON1CHG First joystick button has changed state.
JOY_BUTTON2CHG Second joystick button has changed state.
JOY_BUTTON3CHG Third joystick button has changed state.
JOY_BUTTON4CHG Fourth joystick button has changed state.

and one or more of the following:

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.

xPos

The x-coordinate of the joystick relative to the upper left corner of the client area.

yPos

The y-coordinate of the joystick relative to the upper left corner of the client area.

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

Joysticks, Multimedia Joystick Messages