Nucleus handler tools โบ Docs โบ Game.ProtoInput โบ RawInputFilter
Game.ProtoInput.RawInputFilter
Open in the workbench (search, and try it in a handler)
Game.ProtoInput.RawInputFilter: boolean
Filters the WM_INPUT messages (which send raw input data) to only allow the forwarded messages from the Register Raw Input hook. This will allow only input from the selected device(s). Also modifies the message to tell the game that input was received while the game was in the foreground. Should always be enabled.
Category: Proto Input
In practice
Only acts inside Game.ProtoInput.MessageFilterHook. Handlers usually leave it false at the top and turn it on while input is locked instead: ProtoInput.EnableMessageFilter(player.ProtoInputInstanceHandle, ProtoInput.Values.RawInputFilterID) in Game.ProtoInput.OnInputLocked is the most common Proto Input call in Hub handlers.
Game.ProtoInput.RawInputFilter = true;