ConstOptionalconfig: KaylaClickConfigRegisters a callback that runs on every click anywhere in any attached renderer.
This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks. The call order of all hooks is strictly fixed across every refresh; reordering calls will corrupt internal state.
Useful for global input (pause menu toggle, debug shortcuts, drag anywhere…).
Multiple useGlobalClick calls stack and run in declaration order.
Alternative: useGlobalPointer