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

ProtoInput.SetManualScaling

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

ProtoInput.SetManualScaling(
  instanceHandle: number,
  oldX: number,
  oldY: number,
  newX: number,
  newY: number
): void
AI-writtenAI-written. Based on: Nucleus ProtoInput.cs (opens in a new tab) (SetManualScaling); ProtoInputLoader Inject.cpp (opens in a new tab); ProtoInputHooks PipeCommunication.cpp (opens in a new tab); WindowMsgHook.cpp (opens in a new tab) (Settings, getfactor); Nucleus ProtoInputLauncher.cs (opens in a new tab).

Rescales the mouse position the game sees (mouse messages, GetCursorPos, GetCursorInfo) by oldX/newX and oldY/newY. Parameters: the instance handle, then oldX, oldY, newX, newY; it is ignored unless all four are above 5. Nucleus passes the handler's scale-from size and the player's screen size.

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