Nucleus handler tools β€Ί Docs β€Ί ProtoInput β€Ί Values.SetCursorPosHookID

ProtoInput.Values.SetCursorPosHookID

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

ProtoInput.Values.SetCursorPosHookID: number
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (ExposedValues, ProtoHookIDs); ProtoInputHooks SetCursorPosHook.cpp (opens in a new tab) (Hook_SetCursorPos).

Selects the SetCursorPos hook (ID 4): the game's SetCursorPos moves only the instance's fake cursor, not the real one. Pass it to ProtoInput.InstallHook or ProtoInput.UninstallHook.

Default: (uint)ProtoHookIDs.SetCursorPosHookID

Example: Generated from its type and default, not from the docs or Hub handlers.

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