.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_InputEventMouseButton: InputEventMouseButton ===================== **Inherits:** :ref:`InputEventMouse` **<** :ref:`InputEventWithModifiers` **<** :ref:`InputEvent` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Input event type for mouse button events. Member Functions ---------------- +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_button_index` **(** **)** const | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_factor` **(** **)** | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_doubleclick` **(** **)** const | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_button_index` **(** :ref:`int` button_index **)** | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_doubleclick` **(** :ref:`bool` doubleclick **)** | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_factor` **(** :ref:`float` factor **)** | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pressed` **(** :ref:`bool` pressed **)** | +----------------------------+------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **button_index** - Mouse button identifier, one of the BUTTON_* or BUTTON_WHEEL_* constants in [@Global Scope]. - :ref:`bool` **doubleclick** - Whether the event is a double-click. - :ref:`float` **factor** - :ref:`bool` **pressed** - Pressed state of the mouse button. Member Function Description --------------------------- .. _class_InputEventMouseButton_get_button_index: - :ref:`int` **get_button_index** **(** **)** const .. _class_InputEventMouseButton_get_factor: - :ref:`float` **get_factor** **(** **)** .. _class_InputEventMouseButton_is_doubleclick: - :ref:`bool` **is_doubleclick** **(** **)** const .. _class_InputEventMouseButton_set_button_index: - void **set_button_index** **(** :ref:`int` button_index **)** .. _class_InputEventMouseButton_set_doubleclick: - void **set_doubleclick** **(** :ref:`bool` doubleclick **)** .. _class_InputEventMouseButton_set_factor: - void **set_factor** **(** :ref:`float` factor **)** .. _class_InputEventMouseButton_set_pressed: - void **set_pressed** **(** :ref:`bool` pressed **)**