HasFocus
Overview
Section titled “Overview”Checks if the specified PrismaView has input focus. This method is useful for determining whether the UI is currently receiving user input, which can help manage game state and input handling.
Syntax
Section titled “Syntax”bool HasFocus(PrismaView view);Parameters
Section titled “Parameters”view (required)
Section titled “view (required)”- Type:
PrismaView - Description: The
PrismaViewto check for focus state
Return Value
Section titled “Return Value”- Type:
bool - Returns:
trueif thePrismaViewhas focus; otherwise,false
Usage Examples
Section titled “Usage Examples”// Simple focus state checkif (PrismaUI->HasFocus(view)) { SKSE::log::info("View has focus - UI is active");} else { SKSE::log::info("View does not have focus - UI is inactive");}