Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates which pointer device buttons are being pressed, expressed as a bitmask.
![]() ![]() |
Syntax
HRESULT value = object.get_buttons(* p);
Property values
Type: unsigned short
0
No buttons are pressed
1
- Left mouse button press, or
- Touch contact (PointerEvent only), or
- Pen contact (PointerEvent only)
2
- Right mouse button press, or
- Pen contact with barrel button pressed, or(PointerEvent only)
4
Middle mouse button press
8
X1 (back) mouse button press (PointerEvent only)
16
X2 (forward) mouse button press (PointerEvent only)
32
Pen contact with eraser button pressed (PointerEvent only)