Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

buttons property

Indicates which pointer device buttons are being pressed, expressed as a bitmask.

Document Object Model (DOM) Level 3 Events Specification, Section 5.2.3Internet Explorer 9

Syntax

HRESULT value = object.get_buttons(* p);

Property values

Type: unsigned short

0

No buttons are pressed

1

2

  • Right mouse button press, or
  • Pen contact with barrel button pressed, or(MSPointerEvent only)

4

Middle mouse button press

8

X1 (back) mouse button press (MSPointerEvent only)

16

X2 (forward) mouse button press (MSPointerEvent only)

32

Pen contact with eraser button pressed (MSPointerEvent only)

Standards information

See also

IDOMMouseEvent::button

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.