method
Input.mouse_dx
Input.mouse_dx() -> int
The change in the mouse's x since the previous Input.poll — the relative motion for dragging, panning, or a mouse-look camera.
Example
program Demo {
entry {
Input.set_mouse(10, 0, 0, 0)
Input.poll()
Input.set_mouse(15, 0, 0, 0)
Input.poll()
print(Input.mouse_dx())
}
}