GameWindowInfo
Electron APIs / overlay / GameWindowInfo
Information about a running game's window.
Used to determine:
- Window size.
- Window focus.
- Graphics API used by the game.
- Screen display information.
- Bounding rectangle of the game window.
Example
overlay.on("game-window-changed", (windowInfo, gameInfo, reason) => {
if (windowInfo.focused) {
console.log(
`Game window is focused. Size: ${windowInfo.size.width}x${windowInfo.size.height}`,
);
}
});