123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the InputEventMouseButton.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_InputEventMouseButton:
- InputEventMouseButton
- =====================
- **Inherits:** :ref:`InputEventMouse<class_InputEventMouse>` **<** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
- Input event type for mouse button events.
- Description
- -----------
- Contains mouse click information. See :ref:`Node._input<class_Node_method__input>`.
- Tutorials
- ---------
- - :doc:`../tutorials/inputs/mouse_and_input_coordinates`
- Properties
- ----------
- +---------------------------+------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`button_index<class_InputEventMouseButton_property_button_index>` | ``0`` |
- +---------------------------+------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`doubleclick<class_InputEventMouseButton_property_doubleclick>` | ``false`` |
- +---------------------------+------------------------------------------------------------------------+-----------+
- | :ref:`float<class_float>` | :ref:`factor<class_InputEventMouseButton_property_factor>` | ``1.0`` |
- +---------------------------+------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`pressed<class_InputEventMouseButton_property_pressed>` | ``false`` |
- +---------------------------+------------------------------------------------------------------------+-----------+
- Property Descriptions
- ---------------------
- .. _class_InputEventMouseButton_property_button_index:
- - :ref:`int<class_int>` **button_index**
- +-----------+-------------------------+
- | *Default* | ``0`` |
- +-----------+-------------------------+
- | *Setter* | set_button_index(value) |
- +-----------+-------------------------+
- | *Getter* | get_button_index() |
- +-----------+-------------------------+
- The mouse button identifier, one of the :ref:`ButtonList<enum_@GlobalScope_ButtonList>` button or button wheel constants.
- ----
- .. _class_InputEventMouseButton_property_doubleclick:
- - :ref:`bool<class_bool>` **doubleclick**
- +-----------+------------------------+
- | *Default* | ``false`` |
- +-----------+------------------------+
- | *Setter* | set_doubleclick(value) |
- +-----------+------------------------+
- | *Getter* | is_doubleclick() |
- +-----------+------------------------+
- If ``true``, the mouse button's state is a double-click.
- ----
- .. _class_InputEventMouseButton_property_factor:
- - :ref:`float<class_float>` **factor**
- +-----------+-------------------+
- | *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.
- ----
- .. _class_InputEventMouseButton_property_pressed:
- - :ref:`bool<class_bool>` **pressed**
- +-----------+--------------------+
- | *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.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|