MouseService
Engine service that manages mouse cursor rendering, mouse lock behavior, the cursor-icon stack, delta sensitivity, and mouse position, delta, and button tracking.
This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 2
Description
Not accessible from scripts (Input security). MouseService manages
the mouse cursor and mouse input state — cursor rendering (software cursors
drawn by the engine and hardware cursors drawn by the operating system), mouse
lock behavior, the contextual cursor-icon stack, mouse delta sensitivity, and
tracking of the current mouse position, delta, and button state.
UserInputService delegates its mouse-related members — such as MouseBehavior, MouseIcon, MouseIconEnabled, and MouseDeltaSensitivity — to this service.
History 3
Members 2
MouseEnterStudioViewport
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 1
MouseLeaveStudioViewport
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |