GameWindowUpdateReason
Electron APIs / overlay / GameWindowUpdateReason
type GameWindowUpdateReason = undefined | "resized" | "focus";
Reason for a game window update event.
Used in callbacks where the overlay needs to respond to changes in the game window's state, such as resizing or focus change.
overlay.on("game-window-changed", (window, game, reason) => {
if (reason === "resized") {
console.log("Game window was resized.");
}
});