Input event type for actions.
    public class InputEventAction : InputEvent

Contains a generic action which can be targeted from several type of inputs. Actions can be created from the project settings menu Project > Project Settings > Input Map. See Node._Input(Godot.InputEvent).

Inheritance Chain


    public InputEventAction()


    public string Action { get; set; }

The action’s name. Actions are accessed via this String.

    public bool Pressed { get; set; }

If true, the action’s state is pressed. If false, the action’s state is released.


    public string GetAction()

Getter for Action

    public void SetAction(string action)

Setter for Action

    public void SetPressed(bool pressed)

Setter for Pressed