API Reference › Input › Input.mouse_dy
method

Input.mouse_dy

Input.mouse_dy() -> int

The change in the mouse's y since the previous Input.poll — the vertical companion to Input.mouse_dx.

Example

program Demo {
  entry {
    Input.set_mouse(0, 10, 0, 0)
    Input.poll()
    Input.set_mouse(0, 18, 0, 0)
    Input.poll()
    print(Input.mouse_dy())
  }
}
← All symbols