Api Sandbox Mouse
class

Mouse

public static abstract sealed class Mouse

Gives access to mouse position etc

Properties

Name Type Description
Velocity static Vector2
Position static Vector2 Access to local clients' cursor position, relative to game windows' top left corner.
Delta static Vector2 Change in local clients' cursor position since last frame.
CursorType static String Sets the cursor type until another panel stomps this value. Doesn't affect main menu.
Active static Boolean Whether the local clients' cursor is active or not, meaning it can interact with UI elements, etc.
Visible static Boolean DEPRECATED. Use Mouse.Visibility instead.
Visibility static MouseVisibility The visibility state of the mouse cursor. Auto will only show the mouse when clickable UI elements are visible.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Mouse