Search Results for

    Show / Hide Table of Contents

    Struct MouseState

    Describes the state of the mouse.

    Implements
    IController
    Namespace: Evergine.Common.Input
    Assembly: Evergine.Common.dll
    Syntax
    public struct MouseState : IController

    Fields

    LeftButton

    State of the left button.

    Declaration
    public ButtonState LeftButton
    Field Value
    Type Description
    ButtonState

    MiddleButton

    State of the middle button.

    Declaration
    public ButtonState MiddleButton
    Field Value
    Type Description
    ButtonState

    RightButton

    State of the right button.

    Declaration
    public ButtonState RightButton
    Field Value
    Type Description
    ButtonState

    Wheel

    Wheel value.

    Declaration
    public int Wheel
    Field Value
    Type Description
    int

    X

    X-position.

    Declaration
    public int X
    Field Value
    Type Description
    int

    Y

    Y-position.

    Declaration
    public int Y
    Field Value
    Type Description
    int

    Properties

    IsConnected

    Gets or sets a value indicating whether this instance is connected.

    Declaration
    public bool IsConnected { readonly get; set; }
    Property Value
    Type Description
    bool

    true if this instance is connected; otherwise, false.

    Position

    Gets the current mouse position as a Vector2.

    Declaration
    public Vector2 Position { get; }
    Property Value
    Type Description
    Vector2

    Implements

    IController

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX