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
Property | Modifier | Type | Description |
---|---|---|---|
canInterceptInput? | readonly | boolean | Can the overlay window intercept input. |
exclusiveMode? | readonly | boolean | Is the overlay currently in exclusive input mode. |