Nucleus handler tools โบ Docs โบ Game.ProtoInput โบ MessageFilterHook
Game.ProtoInput.MessageFilterHook
Open in the workbench (search, and try it in a handler)
Game.ProtoInput.MessageFilterHook: boolean
Hooks the GetMessage and PeekMessage functions to intercept every windows message for every window owned by the process. (Note this method is superior to changing WndProc since it works for all windows without knowing what they are, and is less fragile). This hook is used to make the message filters and blocks work. This should always be enabled.
Category: Proto Input
In practice
The filters (RawInputFilter, MouseButtonFilter, ...) and Game.ProtoInput.BlockedMessages only act inside this hook, so they do nothing while it is off. Most Proto Input handlers turn it on, and many then enable the filters only while input is locked, from Game.ProtoInput.OnInputLocked with ProtoInput.EnableMessageFilter.
Game.ProtoInput.MessageFilterHook = true;