Struct InputEventMouseButton
Input event type for mouse button events.
struct InputEventMouseButton
;
Contains mouse click information. See Node.
Properties
| Name | Type | Description |
|---|---|---|
buttonIndex[get, set]
|
long | The mouse button identifier, one of the buttonlist button or button wheel constants.
|
doubleclick[get, set]
|
bool | If true, the mouse button's state is a double-click.
|
factor[get, set]
|
double | The amount (or delta) of the event. When used for high-precision scroll events, this indicates the scroll amount (vertical or horizontal). This is only supported on some platforms; the reported sensitivity varies depending on the platform. May be 0 if not supported.
|
pressed[get, set]
|
bool | If true, the mouse button's state is pressed. If false, the mouse button's state is released.
|
Methods
| Name | Description |
|---|---|
getButtonIndex
|
|
getFactor
|
|
isDoubleclick
|
|
setButtonIndex
|
|
setDoubleclick
|
|
setFactor
|
|
setPressed
|