InputEventMouseButton

Inherits: InputEventMouse < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object

Input event type for mouse button events.

Description

Contains mouse click information. See Node._input.

Property Descriptions

Default

0

Setter

set_button_index(value)

Getter

get_button_index()

The mouse button identifier, one of the MouseButton button or button wheel constants.


Default

false

Setter

set_double_click(value)

Getter

is_double_click()

If true, the mouse button's state is a double-click.


Default

1.0

Setter

set_factor(value)

Getter

get_factor()

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.


Default

false

Setter

set_pressed(value)

Getter

is_pressed()

If true, the mouse button's state is pressed. If false, the mouse button's state is released.