Skip to content

Unfocus

Removes input focus from the specified PrismaView and hides the cursor. This method deactivates the UI and returns control to the game, automatically resuming the game if it was previously paused by the Focus method.

void Unfocus(PrismaView view);
  • Type: PrismaView
  • Description: The PrismaView from which to remove focus

This method returns void.

// Simple unfocus operation
PrismaUI->Unfocus(view);
logger::info("View unfocused - control returned to game");
  • Paired Operations: Always pair Focus and Unfocus calls appropriately
  • Input Management: Use Unfocus to return game input control to the player