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

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.

✎ AI-written, based on Nucleus ProtoInput.cs (SetManualScaling), ProtoInputLoader Inject.cpp, ProtoInputHooks PipeCommunication.cpp, ProtoInputHooks WindowMsgHook.cpp (Settings, getfactor), Nucleus ProtoInputLauncher.cs. 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