Nucleus handler tools β€Ί Docs β€Ί ProtoInput β€Ί SetUseDinputRedirection

ProtoInput.SetUseDinputRedirection

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

ProtoInput.SetUseDinputRedirection(
  instanceHandle: number,
  useRedirection: boolean
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetUseDinputRedirection); ProtoInputLoader protoloader.h (opens in a new tab) (comment: must be called before InstallHook on the Xinput hook); ProtoInputHooks PipeCommunication.cpp (opens in a new tab) (SetUseDinput); XinputHook.cpp (opens in a new tab) (XInputGetStateDinput_Inline, SelectDinputDevice).

When true, the XinputHookID hook reads a DirectInput controller (the one chosen by ProtoInput.SetControllerIndex, among DirectInput devices) and gives it to the game as an XInput controller. Parameters: the instance handle and true/false. Call it before installing the XinputHookID hook.

Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop