tes3uiMenuInputController⚓︎
A core came structure responsible for managing the input around menu elements.
Properties⚓︎
lastInputTime
⚓︎
The amount of seconds that have passed since the last time the input was updated.
Returns:
result
(number)
menuController
⚓︎
A handle back to the main menu controller.
Returns:
result
(tes3uiMenuController)
pointerMoveEventSource
⚓︎
Read-only. No description yet available.
Returns:
result
(tes3uiElement)
pointerMovePreviousEventSource
⚓︎
Read-only. No description yet available.
Returns:
result
(tes3uiElement)
textInputFocus
⚓︎
The element that is currently focused for text input.
Returns:
result
(tes3uiElement, nil)
Example: Checking if text input is active
---@return boolean isTextInputActive
local function isTextInputActive()
local menuController = tes3.worldController.menuController
local inputFocus = menuController.inputController.textInputFocus
if (not inputFocus or not inputFocus.visible) then
return false
end
return true
end
Methods⚓︎
flushBufferedTextEvents
⚓︎
Clears the current text input. If no text has been passed to the current text focus, this will prevent it from doing so.
myObject:flushBufferedTextEvents()