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
gamejamsresults

Game Jam III

Crowned Sat 3 Oct
Winner 🏆 GAMMA ☢ TEAM
ThemeOne More Round

This jam is over. The next one will show up here.

See the results
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
Input
Mouse
chevron_left Input
class
Mouse

Static Properties

data_objectActivedata_objectCursorTypedata_objectDeltadata_objectPositiondata_objectVelocitydata_objectVisibilityremove_circleVisible
Mouse
Gives access to mouse position etc
class Sandbox .
staticsealedabstractSandbox.Engine

data_object Static Properties 7

Active
bool
Whether the local clients' cursor is active or not, meaning it can interact with UI elements, etc.
CursorType
string
Sets the cursor type used when the UI hasn't claimed the cursor (e.g. when the mouse falls through the UI onto the world). UI panel hover cursors take precedence over this.
Delta
Vector2
Change in local clients' cursor position since last frame.
Position
Vector2
Access to local clients' cursor position, relative to game windows' top left corner.
Velocity
Vector2
Visibility
MouseVisibility
The visibility state of the mouse cursor. Auto will only show the mouse when clickable UI elements are visible.
Visible
obsoletebool
DEPRECATED. Use Mouse.Visibility instead.
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