.. 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 ===================== **Category:** Built-In Types Brief Description ----------------- Member Functions ---------------- +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action` **(** :ref:`String` action **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_pressed` **(** :ref:`String` is_action_pressed **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_released` **(** :ref:`String` is_action_released **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_echo` **(** **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_pressed` **(** **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_as_action` **(** :ref:`String` action, :ref:`bool` pressed **)** | +--------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **type** - :ref:`int` **device** - :ref:`int` **ID** - :ref:`bool` **shift** - :ref:`bool` **alt** - :ref:`bool` **control** - :ref:`bool` **meta** - :ref:`int` **button_mask** - :ref:`int` **x** - :ref:`int` **y** - :ref:`Vector2` **pos** - :ref:`int` **global_x** - :ref:`int` **global_y** - :ref:`Vector2` **global_pos** - :ref:`int` **button_index** - :ref:`bool` **pressed** - :ref:`bool` **doubleclick** Numeric Constants ----------------- - **NONE** = **0** - **KEY** = **1** - **MOUSE_MOTION** = **2** - **MOUSE_BUTTON** = **3** - **JOYSTICK_MOTION** = **4** - **JOYSTICK_BUTTON** = **5** - **SCREEN_TOUCH** = **6** - **SCREEN_DRAG** = **7** - **ACTION** = **8** Member Function Description --------------------------- .. _class_InputEventMouseButton_is_action: - :ref:`bool` **is_action** **(** :ref:`String` action **)** .. _class_InputEventMouseButton_is_action_pressed: - :ref:`bool` **is_action_pressed** **(** :ref:`String` is_action_pressed **)** .. _class_InputEventMouseButton_is_action_released: - :ref:`bool` **is_action_released** **(** :ref:`String` is_action_released **)** .. _class_InputEventMouseButton_is_echo: - :ref:`bool` **is_echo** **(** **)** .. _class_InputEventMouseButton_is_pressed: - :ref:`bool` **is_pressed** **(** **)** .. _class_InputEventMouseButton_set_as_action: - void **set_as_action** **(** :ref:`String` action, :ref:`bool` pressed **)**