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

ProtoInput.SetRawInputBypass

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

ProtoInput.SetRawInputBypass(
  instanceHandle: number,
  enable: boolean
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetRawInputBypass); ProtoInputLoader Inject.cpp (opens in a new tab); ProtoInputHooks PipeCommunication.cpp (opens in a new tab) (SetRawInputBypass); RawInput.cpp (opens in a new tab) (ProcessRawInput).

When true, raw input from every mouse and keyboard is forwarded to the game unchanged, not only from the assigned devices, and Proto Input's fake mouse and keyboard are not updated from it. Parameters: the instance handle and true/false.

AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetRawInputBypass); ProtoInputHooks RawInput.cpp (opens in a new tab); PipeCommunication.cpp (opens in a new tab); Proto Input readme Proto Input.txt (opens in a new tab).
  • instanceHandle: The player's Proto Input instance, Player.ProtoInputInstanceHandle (or PlayerList[i].ProtoInputInstanceHandle).
  • enable: true passes raw input from every device to the game, not just the player's; false lets Proto Input filter it per device.

Example: From Hub handlers

for (var i = 0; i < PlayerList.Count; i++) {
  var player = PlayerList[i];
  ProtoInput.SetRawInputBypass(
    player.ProtoInputInstanceHandle,
    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