s&box docs

public static abstract sealed class Sandbox.Mouse

Gives access to mouse position etc

Broader workflow and conceptual references connected to this API.

Properties

Showing 7 properties

public static bool Sandbox.Mouse.Active { get; set; }

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

public static string Sandbox.Mouse.CursorType { get; set; }

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

public static Vector2 Sandbox.Mouse.Delta { get; set; }

Change in local clients' cursor position since last frame.

public static Vector2 Sandbox.Mouse.Position { get; set; }

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

public static Sandbox.MouseVisibility Sandbox.Mouse.Visibility { get; set; }

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

public static bool Sandbox.Mouse.Visible { get; set; }Obsolete

DEPRECATED. Use Mouse.Visibility instead.

Obsolete: This API member is obsolete.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Mouse

On this page