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

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.

_✎ AI-written, based on Nucleus ProtoInput.cs (SetTranslateMKBtoXinput), ProtoInputLoader Inject.cpp, ProtoInputHooks PipeCommunication.cpp (TranslateMKBtoXinput), ProtoInputHooks XinputHook.cpp (Hook_XInputGetState, XInputfromkbm), GetKeyStateHook.cpp, RawInput.cpp. 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