Skip to content

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)

A handle back to the main menu controller.

Returns:


textInputFocus⚓︎

The element that is currently focused for text input.

Returns:

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()