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; }

The mouse button identifier, one of the [enum ButtonList] button or button wheel constants.

    public bool Doubleclick { get; set; }

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

    public float Factor { get; set; }

The amount (or delta) of the event. When used for high-precision scroll events, this indicates the scroll amount (vertical or horizontal). This is only supported on some platforms; the reported sensitivity varies depending on the platform. May be 0 if not supported.

    public bool Pressed { get; set; }

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

Methods

    [Obsolete("GetButtonIndex is deprecated. Use the ButtonIndex property instead.")]
    public int GetButtonIndex()

Getter for ButtonIndex

    [Obsolete("GetFactor is deprecated. Use the Factor property instead.")]
    public float GetFactor()

Getter for Factor

    [Obsolete("IsDoubleclick is deprecated. Use the Doubleclick property instead.")]
    public bool IsDoubleclick()

Getter for Doubleclick

    [Obsolete("SetButtonIndex is deprecated. Use the ButtonIndex property instead.")]
    public void SetButtonIndex(int buttonIndex)

Setter for ButtonIndex

    [Obsolete("SetDoubleclick is deprecated. Use the Doubleclick property instead.")]
    public void SetDoubleclick(bool doubleclick)

Setter for Doubleclick

    [Obsolete("SetFactor is deprecated. Use the Factor property instead.")]
    public void SetFactor(float factor)

Setter for Factor

    [Obsolete("SetPressed is deprecated. Use the Pressed property instead.")]
    public void SetPressed(bool pressed)

Setter for Pressed

Tags: