# Enum.MouseBehavior

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/MouseBehavior/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/MouseBehavior

Sets the user's mouse behavior.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Default` | 0 | The mouse moves freely around the user's screen. |
| `LockCenter` | 1 | The mouse is locked and cannot move from the center of the user's screen. |
| `LockCurrentPosition` | 2 | The mouse is locked and cannot move from its current position on the user's screen at the time of locking. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [UserInputService](https://rapi.sleaze.dev/classes/UserInputService.md): property `MouseBehavior`
