MM_JOY2BUTTONDOWN message

The MM_JOY2BUTTONDOWN message notifies the window that has captured joystick JOYSTICKID2 that a button has been pressed.



MM_JOY2BUTTONDOWN 
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_BUTTON1CHGFirst joystick button has changed state.
JOY_BUTTON2CHGSecond joystick button has changed state.
JOY_BUTTON3CHGThird joystick button has changed state.
JOY_BUTTON4CHGFourth joystick button has changed state.

 

and one or more of the following:

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

 

xPos

The x-coordinates 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

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 Messages

 

 

Show: