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

ProtoInput.SetTranslateMKBtoXinput

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

ProtoInput.SetTranslateMKBtoXinput(
  instanceHandle: number,
  TranslateMKBtoXinput: boolean
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetTranslateMKBtoXinput); ProtoInputLoader Inject.cpp (opens in a new tab); ProtoInputHooks PipeCommunication.cpp (opens in a new tab) (TranslateMKBtoXinput); XinputHook.cpp (opens in a new tab) (Hook_XInputGetState, XInputfromkbm); GetKeyStateHook.cpp (opens in a new tab); RawInput.cpp (opens in a new tab).

When true, the XinputHookID hook presents the instance's mouse and keyboard as an XInput controller in the slots that have no controller. Meanwhile the key state hooks report no keys pressed and raw input is not forwarded to the game. Parameters: the instance handle and true/false.

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