method
Input.set_mouse
Input.set_mouse(x, y, buttons, wheel)
Injects the whole mouse state: position x/y, a buttons bitmask (bit 0 left, 1 right, 2 middle), and this frame's wheel delta. The mouse counterpart to Input.press — for headless runs, AI, replays, or network-fed cursors.
Example
program Demo {
entry {
Input.set_mouse(64, 32, 1, 0)
Input.poll()
print(Input.mouse_x())
}
}