.. 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_InputMap: InputMap ======== **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Singleton that manages actions. Member Functions ---------------- +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_action` **(** :ref:`String` action **)** const | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_action_id` **(** :ref:`String` action **)** const | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_action_from_id` **(** :ref:`int` id **)** const | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_action` **(** :ref:`String` action **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`erase_action` **(** :ref:`String` action **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`action_add_event` **(** :ref:`String` action, :ref:`InputEvent` event **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`action_has_event` **(** :ref:`String` action, :ref:`InputEvent` event **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`action_erase_event` **(** :ref:`String` action, :ref:`InputEvent` event **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_action_list` **(** :ref:`String` action **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`event_is_action` **(** :ref:`InputEvent` event, :ref:`String` action **)** const | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`load_from_globals` **(** **)** | +------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ Description ----------- Singleton that manages actions. InputMap has a list of the actions used in InputEvent, which can be modified. Member Function Description --------------------------- .. _class_InputMap_has_action: - :ref:`bool` **has_action** **(** :ref:`String` action **)** const .. _class_InputMap_get_action_id: - :ref:`int` **get_action_id** **(** :ref:`String` action **)** const .. _class_InputMap_get_action_from_id: - :ref:`String` **get_action_from_id** **(** :ref:`int` id **)** const .. _class_InputMap_add_action: - void **add_action** **(** :ref:`String` action **)** .. _class_InputMap_erase_action: - void **erase_action** **(** :ref:`String` action **)** .. _class_InputMap_action_add_event: - void **action_add_event** **(** :ref:`String` action, :ref:`InputEvent` event **)** .. _class_InputMap_action_has_event: - :ref:`bool` **action_has_event** **(** :ref:`String` action, :ref:`InputEvent` event **)** .. _class_InputMap_action_erase_event: - void **action_erase_event** **(** :ref:`String` action, :ref:`InputEvent` event **)** .. _class_InputMap_get_action_list: - :ref:`Array` **get_action_list** **(** :ref:`String` action **)** .. _class_InputMap_event_is_action: - :ref:`bool` **event_is_action** **(** :ref:`InputEvent` event, :ref:`String` action **)** const .. _class_InputMap_load_from_globals: - void **load_from_globals** **(** **)**