Skip to main content

GameInputInterception

Electron APIs / overlay / GameInputInterception

State of input handling between the game and the overlay system.

Used for determining whether the overlay can intercept input events, or whether it has fully taken control over user input in exclusive mode.

Example​

overlay.on("game-input-interception-changed", (info) => {
if (info.canInterceptInput) {
console.log("Overlay can now intercept input.");
}
});

Properties​

PropertyModifierTypeDescription
canInterceptInput?readonlybooleanCan the overlay window intercept input.
exclusiveMode?readonlybooleanIs the overlay currently in exclusive input mode.