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

ProtoInput.SetControllerIndex

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

ProtoInput.SetControllerIndex(
  instanceHandle: number,
  controllerIndex: number,
  controllerIndex2: number,
  controllerIndex3: number,
  controllerIndex4: number
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetControllerIndex); ProtoInputLoader Inject.cpp (opens in a new tab); ProtoInputHooks PipeCommunication.cpp (opens in a new tab) (SetControllerIndex); XinputHook.cpp (opens in a new tab) (GetTargetControllerIndex).

Chooses the controllers the game instance sees through the XinputHookID hook. Parameters: the instance handle, then the controller for the game's XInput slots 1 to 4, counted from 1; 0 means no controller in that slot. With ProtoInput.SetTranslateXinputtoMKB on, the first controller is translated to mouse and keyboard and every slot reports no controller.

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