s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
MouseVisibility
chevron_left Classes
enum
MouseVisibility

Static Fields

crop_dinAutocrop_dinHiddencrop_dinVisible
MouseVisibility
Mouse input mode. To hide only the cursor image, use Sandbox.Mouse.CursorType with <c>"none"</c>.
enum Sandbox .
sealedSandbox.Engine

crop_din Static Fields 3

Auto
MouseVisibility
Uses cursor mode when visible screen UI wants pointer input; otherwise uses captured relative input.
Hidden
MouseVisibility
Captures relative movement for camera look, hides the cursor and disables normal screen UI pointer interaction. For a game-drawn cursor, use Sandbox.MouseVisibility.Visible with Mouse.CursorType = "none" to preserve OS pointer speed.
Visible
MouseVisibility
Uses normal OS cursor movement and allows UI interaction, even with Mouse.CursorType = "none".
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter