Gets a value that indicates which mouse buttons a user pressed.
HRESULT IDOMMouseEvent::get_buttons(USHORT *p);
- Pointer to a variable of type unsigned short that receives one of the values listed in Possible Values.
0 Default. No button is pressed. 1 The left mouse button is pressed. 2 The right mouse button is pressed. 3 The left and right mouse buttons are pressed. 4 The wheel (middle) mouse button is pressed. 5 The left and wheel (middle) mouse buttons are pressed. 6 The right and wheel (middle) mouse buttons are pressed. 7 All three buttons are pressed.
Returns S_OK if successful, or an error value otherwise.