buttons property
num
get
buttons
Gets or sets the set of buttons that are currently being held down.
If this is a mouseup
event, this set of buttons does not include
the button that was just released, which will be the value of #button.
Common values for this property:
- 0: not holding down any button
- 1: left mouse button
- 2: right mouse button
- 3: both left and right mouse buttons
- 4: middle mouse button
- 5: middle and left mouse buttons
- 6: middle and right mouse buttons
- 7: all three common mouse buttons
Other values are possible if the mouse has additional buttons.
This property is valid if this is a mouse event.
Implementation
_i2.num get buttons => _i4.getProperty(
this,
'buttons',
);
set
buttons
(num value)
Implementation
set buttons(_i2.num value) {
_i4.setProperty(
this,
'buttons',
value,
);
}