Files
godot-docs/classes/class_inputeventmouse.rst
2018-01-18 22:02:30 +01:00

42 lines
1.6 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the InputEventMouse.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_InputEventMouse:
InputEventMouse
===============
**Inherits:** :ref:`InputEventWithModifiers<class_inputeventwithmodifiers>` **<** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Inherited By:** :ref:`InputEventMouseMotion<class_inputeventmousemotion>`, :ref:`InputEventMouseButton<class_inputeventmousebutton>`
**Category:** Core
Brief Description
-----------------
Base input event type for mouse events.
Member Variables
----------------
.. _class_InputEventMouse_button_mask:
- :ref:`int<class_int>` **button_mask** - Mouse button mask identifier, one of or a bitwise combination of the BUTTON_MASK\_\* constants in :ref:`@GlobalScope<class_@globalscope>`.
.. _class_InputEventMouse_global_position:
- :ref:`Vector2<class_vector2>` **global_position** - Mouse position relative to the current :ref:`Viewport<class_viewport>` when used in :ref:`Control._gui_input<class_Control__gui_input>`, otherwise is at 0,0.
.. _class_InputEventMouse_position:
- :ref:`Vector2<class_vector2>` **position** - Mouse local position relative to the :ref:`Viewport<class_viewport>`. If used in :ref:`Control._gui_input<class_Control__gui_input>` the position is relative to the current :ref:`Control<class_control>` which is under the mouse.
Description
-----------
Stores general mouse events information.