Skip to main content

ExclusiveInputOptions

Electron APIs / overlay / ExclusiveInputOptions

Configuration options for entering exclusive input mode in the overlay.

These settings control the visual and behavioral aspects of the overlay when it enters exclusive mode, whiche prevents the game from receiving user input.

Properties​

PropertyTypeDescription
backgroundColor?stringExclusive mode overlay background color. Use rgba(0,0,0,0) to disable background color NOTE Using an invalid color format (e.g: not rgba(...)) will throw an Error. Default 'rgba(12, 12, 12, , 0.5)'
centerCursor?booleanMove the mouse cursor to the center of the game window when entering exclusive mode. Useful when the game has no visible cursor (e.g. during gameplay), where the cursor would otherwise appear wherever the game last left it. Default false Since 2.0.17
fadeAnimateInterval?numberExclusive mode FadeIn / FadeOut duration in milliseconds. Use 0 to disable. Default 100