Method to unlock mouse cursor from Lua
There is currently no way to unlock the mouse cursor from Lua. Certain custom, interactive UI don't always intend appear with other UI modes that unlock the cursor.
At first, it made sense to consider this for a Lua UI layout property; but because the Lua UI is expressive and not functional (as in, it doesn't use methods/functions to control the operations).
Instead, the better approach would be an interface method similar to how Unity does this.
In Unity, the supported method is the Cursor from the input library.
Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;OpenMW should have this ability. Potentially, ...
UI.setCursorMode(UI.CursorMode.FREE)A personal use (as an example) is a debugging Lua UI I am creating; but it can't be interacted with unless I open up another engine UI that unlocks the cursor.
Edited by Cole Green
