.. 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_InputEvent: InputEvent ========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`InputEventScreenTouch`, :ref:`InputEventWithModifiers`, :ref:`InputEventScreenDrag`, :ref:`InputEventJoypadMotion`, :ref:`InputEventJoypadButton`, :ref:`InputEventAction` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`action_match` **(** :ref:`InputEvent` event **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`as_text` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_device` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_id` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action` **(** :ref:`String` action **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_pressed` **(** :ref:`String` action **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_released` **(** :ref:`String` action **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_type` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_echo` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_pressed` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_device` **(** :ref:`int` device **)** | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_id` **(** :ref:`int` id **)** | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`shortcut_match` **(** :ref:`InputEvent` event **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`InputEvent` | :ref:`xformed_by` **(** :ref:`Transform2D` xform, :ref:`Vector2` local_ofs=null **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **device** Member Function Description --------------------------- .. _class_InputEvent_action_match: - :ref:`bool` **action_match** **(** :ref:`InputEvent` event **)** const .. _class_InputEvent_as_text: - :ref:`String` **as_text** **(** **)** const .. _class_InputEvent_get_device: - :ref:`int` **get_device** **(** **)** const .. _class_InputEvent_get_id: - :ref:`int` **get_id** **(** **)** const .. _class_InputEvent_is_action: - :ref:`bool` **is_action** **(** :ref:`String` action **)** const Return if this input event matches a pre-defined action, no matter the type. .. _class_InputEvent_is_action_pressed: - :ref:`bool` **is_action_pressed** **(** :ref:`String` action **)** const Return whether the given action is being pressed (and is not an echo event for KEY events). Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG and NONE. .. _class_InputEvent_is_action_released: - :ref:`bool` **is_action_released** **(** :ref:`String` action **)** const Return whether the given action is released (i.e. not pressed). Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG and NONE. .. _class_InputEvent_is_action_type: - :ref:`bool` **is_action_type** **(** **)** const .. _class_InputEvent_is_echo: - :ref:`bool` **is_echo** **(** **)** const Return if this input event is an echo event (only for events of type KEY, it will return false for other types). .. _class_InputEvent_is_pressed: - :ref:`bool` **is_pressed** **(** **)** const Return if this input event is pressed. Not relevant for the event types MOUSE_MOTION, SCREEN_DRAG and NONE. .. _class_InputEvent_set_device: - void **set_device** **(** :ref:`int` device **)** .. _class_InputEvent_set_id: - void **set_id** **(** :ref:`int` id **)** .. _class_InputEvent_shortcut_match: - :ref:`bool` **shortcut_match** **(** :ref:`InputEvent` event **)** const .. _class_InputEvent_xformed_by: - :ref:`InputEvent` **xformed_by** **(** :ref:`Transform2D` xform, :ref:`Vector2` local_ofs=null **)** const