Nucleus handler tools › Docs › ProtoInput › SetDinputHookAlsoHooksGetDeviceState

ProtoInput.SetDinputHookAlsoHooksGetDeviceState

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

ProtoInput.SetDinputHookAlsoHooksGetDeviceState(
  instanceHandle: number,
  enable: boolean
): void

When true, the DinputOrderHookID hook also hooks the controller's GetDeviceState. Parameters: the instance handle and true/false. Call it before installing the DinputOrderHookID hook.

✎ AI-written, based on Nucleus ProtoInput.cs (SetDinputHookAlsoHooksGetDeviceState), ProtoInputLoader protoloader.h (comment: must be called before InstallHook on the Dinput order hook), ProtoInputHooks PipeCommunication.cpp, ProtoInputHooks DinputOrderHook.cpp (InstallControllerHooks). Not from the official docs. Is it wrong? Tell us

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop