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 button has changed.
![]() ![]() |
Syntax
object.get_button(number* p);
Property values
Type: number
-1
Mouse move with no buttons pressed(PointerEvent only)
0
- Left mouse button press, or
- Touch contact (PointerEvent only), or
- Pen contact (PointerEvent only)
1
Middle mouse button press
2
- Right mouse button press, or
- Pen contact with barrel button pressed (PointerEvent only)
3
X1 (back) mouse button press (PointerEvent only)
4
X2 (forward) mouse button press (PointerEvent only)
5
Pen contact with eraser button pressed (PointerEvent only)