Nucleus handler tools โ€บ Docs โ€บ Game.Hook โ€บ ForceFocus

Game.Hook.ForceFocus

Open in the workbench (search, and try it in a handler)

Game.Hook.ForceFocus: boolean

If our custom x360ce xinput DLL should hook into the game's window and fake Window's events so we never leave focus.

AI-writtenAI-written. Based on: Nucleus XInputPlusDll.cs (opens in a new tab) ((CustomDllEnabled: IniWriteValue("Options", "ForceFocus")), the only place it is read); Verified Hub handlers, counted 2026-11-17 (opens in a new tab).

In practice

It only goes into the custom XInput DLL's settings (ncoop.ini, ForceFocus), so it does nothing unless Game.Hook.CustomDllEnabled is true. Most handlers set it true without the custom DLL, where it changes nothing; focus is handled by Proto Input or the other focus options there.

Is "In practice" right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).
Game.Hook.ForceFocus = true;
Is the doc right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop