ControlMode
The ControlMode Enum sets how the player is controlled.
Items 2
History | Name | Value | Legacy Names | Description | |
---|---|---|---|---|---|
598 | Classic | 0 | Allows the camera to be moved by clicking and dragging with the right mouse button. | ||
598 | MouseLockSwitch | 1 | Mouse Lock Switch | Similar to classic, but allows the player to toggle mouse locking, causing the camera to rotate as the player moves the mouse (without holding down a button). |
Description
The ControlMode Enum sets how the player is controlled.
Note that shift-lock related APIs are in the process of being deprecated, so it's recommended to use UserInputService.MouseBehavior instead to lock the mouse.
History 6
- 598 Change Index of MouseLockSwitch from 0 to 1
- 598 Change Index of Classic from 1 to 0
- 536 Change LegacyNames of MouseLockSwitch from [] to [Mouse Lock Switch]
- 47 Add MouseLockSwitch
- 47 Add Classic
- 47 Add ControlMode