How hotkey interception works
Hotline catches mods that poll a raw function key (F1-F12) and adds a button for each key to that mod’s panel. You trigger any mod’s hotkey from one place, and two mods no longer fight over a key. The mod does not need to use the Hotline API.
How it works
Section titled “How it works”- Hotline wraps the per-frame methods of every other mod (
OnUpdateand others) to know which mod is running. - A Harmony hook on
UnityEngine.Input.GetKeyDownassigns each polled function key to that mod. - Hotline adds a “Press Fx” button to the mod’s panel.
The hook applies to mod code only. The game’s own input is not touched.
Press a caught key
Section titled “Press a caught key”Click the “Press Fx” button, or run hotline key press Fx <mod>. Hotline sends a one-frame synthetic press that only the owning mod sees. Input is read on the client, so multiplayer is not affected.
Full takeover
Section titled “Full takeover”By default the raw key keeps working. Set SuppressRawFunctionKeys to true, or run hotline intercept suppress on, for full takeover. A physical function-key press then no longer reaches the mod. It opens the overlay on that mod’s panel, where each key is a button.
Master key
Section titled “Master key”The overlay key (default F6) belongs to Hotline and is never caught. If a mod also uses F6, it still gets a button. Pressing F6 opens the overlay on that mod’s panel, and the mod’s raw F6 is blocked so it cannot fire twice.
One window per mod
Section titled “One window per mod”A registered panel, forwarded data (for example from Snitch) and caught hotkeys land in one panel when they share the mod’s name.
Limits
Section titled “Limits”- Hotline catches only mods that use the legacy
UnityEngine.Input. Mods on the new Input System are not caught and are not affected. - The vanilla game binds no function keys, so it is never touched.