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
PrismaView
to check for focus state
Return Value
Section titled “Return Value”- Type:
bool
- Returns:
true
if thePrismaView
has focus; otherwise,false
Usage Examples
Section titled “Usage Examples”// Simple focus state checkif (PrismaUI->HasFocus(view)) { logger::info("View has focus - UI is active");} else { logger::info("View does not have focus - UI is inactive");}