InputEventMouseButton
Inherits: InputEventMouse < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Represents a mouse button being pressed or released.
Description
Stores information about mouse click events. See Node._input.
Tutorials
Properties
| ||
| ||
| ||
| ||
|
Property Descriptions
MouseButton button_index = 0
void set_button_index ( MouseButton value )
MouseButton get_button_index ( )
The mouse button identifier, one of the MouseButton button or button wheel constants.
bool canceled = false
If true
, the mouse button event has been canceled.
bool double_click = false
If true
, the mouse button’s state is a double-click.
float factor = 1.0
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.
bool pressed = false
If true
, the mouse button’s state is pressed. If false
, the mouse button’s state is released.
© Copyright 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision 53e837c6
.
Built with Sphinx using a theme provided by Read the Docs.