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

ProtoInput.SetDrawFakeCursorFix

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

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

Switches the fake cursor to an alternative drawing mode that offsets it by the cursor image's detected hotspot and does not resize it for the monitor scale. It does not turn drawing on: ProtoInput.SetDrawFakeCursor does. Parameters: the instance handle and true/false.

Example: From Hub handlers

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