Input event type for mouse button events.
    public class InputEventMouseButton : InputEventMouse

Contains mouse click information. See Node._Input(Godot.InputEvent).

Inheritance Chain

Constructors

    public InputEventMouseButton()

Properties

    public int ButtonIndex { get; set; }

Mouse button identifier, one of the BUTTON_* or BUTTON_WHEEL_* constants in [@GlobalScope].

    public bool Doubleclick { get; set; }

If true the mouse button’s state is a double-click. If false the mouse button’s state is released.

    public float Factor { get; set; }

TO TALK in PR, reduz said : i think it’s used for apple touch but i don’t remember what it does

    public bool Pressed { get; set; }

If true the mouse button’s state is pressed. If false the mouse button’s state is released.

Methods

    public int GetButtonIndex()

Getter for ButtonIndex

    public float GetFactor()

Getter for Factor

    public bool IsDoubleclick()

Getter for Doubleclick

    public void SetButtonIndex(int buttonIndex)

Setter for ButtonIndex

    public void SetDoubleclick(bool doubleclick)

Setter for Doubleclick

    public void SetFactor(float factor)

Setter for Factor

    public void SetPressed(bool pressed)

Setter for Pressed

Tags: