InputEventMouseButton

Inherits: InputEventMouse < InputEventWithModifiers < InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for mouse button events.

Properties

intbutton_index
booldoubleclick
floatfactor
boolpressed

Description

Contains mouse click information. See Node._input.

Tutorials

Property Descriptions

  • int button_index
Setterset_button_index(value)
Getterget_button_index()

Mouse button identifier, one of the BUTTON_* or BUTTON_WHEEL_* constants in @GlobalScope.


Setterset_doubleclick(value)
Getteris_doubleclick()

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


Setterset_factor(value)
Getterget_factor()

Magnitude. Amount (or delta) of the event. Used for scroll events, indicates scroll amount (vertically or horizontally). Only supported on some platforms, sensitivity varies by platform. May be 0 if not supported.


Setterset_pressed(value)
Getteris_pressed()

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