class Mouse

in global :: Sandbox

Gives access to mouse position etc


public static Vector2 Position { get; set; }

Access to local clients' cursor position, relative to game windows' top left corner.

public static Vector2 Delta { get; }

Change in local clients' cursor position since last frame.

public static string CursorType { get; set; }

Sets the cursor type until another panel stomps this value. Doesn't affect main menu.

public static bool Active { get; }

Whether the local clients' cursor is active or not, meaning it can interact with UI elements, etc.

public static bool Visible { get; set; }

DEPRECATED. Use Mouse.Visibility instead.

public static MouseVisibility Visibility { get; set; }

The visibility state of the mouse cursor. Auto will only show the mouse when clickable UI elements are visible.

public static Vector2 Velocity { get; }

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.