API Reference › Input › Input.mouse_y
method

Input.mouse_y

Input.mouse_y() -> int

The mouse's y position this frame — fed by the window when windowed, or by Input.set_mouse otherwise.

Example

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