Base input event type for mouse events.
    public abstract class InputEventMouse : InputEventWithModifiers

Stores general mouse events information.

Inheritance Chain

Derived Classes

Properties

    public int ButtonMask { get; set; }

The mouse button mask identifier, one of or a bitwise combination of the [enum ButtonList] button masks.

    public Vector2 GlobalPosition { get; set; }

The global mouse position relative to the current Viewport when used in Control._GuiInput(Godot.InputEvent), otherwise is at 0,0.

    public Vector2 Position { get; set; }

The local mouse position relative to the Viewport. If used in Control._GuiInput(Godot.InputEvent), the position is relative to the current Control which is under the mouse.

Methods

    [Obsolete("GetButtonMask is deprecated. Use the ButtonMask property instead.")]
    public int GetButtonMask()

Getter for ButtonMask

    [Obsolete("GetGlobalPosition is deprecated. Use the GlobalPosition property instead.")]
    public Vector2 GetGlobalPosition()

Getter for GlobalPosition

    [Obsolete("GetPosition is deprecated. Use the Position property instead.")]
    public Vector2 GetPosition()

Getter for Position

    [Obsolete("SetButtonMask is deprecated. Use the ButtonMask property instead.")]
    public void SetButtonMask(int buttonMask)

Setter for ButtonMask

    [Obsolete("SetGlobalPosition is deprecated. Use the GlobalPosition property instead.")]
    public void SetGlobalPosition(Vector2 globalPosition)

Setter for GlobalPosition

    [Obsolete("SetPosition is deprecated. Use the Position property instead.")]
    public void SetPosition(Vector2 position)

Setter for Position

Tags: