MouseEventArgs.button Property

Parent Object: MouseEventArgs
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/MouseEventArgs.h>

Description

Gets which mouse button(s) are pressed. The returned value is bitwise and can indicate that more than one button is pressed.

Syntax

"mouseEventArgs_var" is a variable referencing a MouseEventArgs object.

# Get the value of the property.
propertyValue = mouseEventArgs_var.button
"mouseEventArgs_var" is a variable referencing a MouseEventArgs object.
#include <Core/UserInterface/MouseEventArgs.h>

// Get the value of the property.
MouseButtons propertyValue = mouseEventArgs_var->button();

Property Value

This is a read only property whose value is a MouseButtons.

Version

Introduced in version August 2014