natiny.input.get_mouse_y
natiny.input.get_mouse_y() -> y
Returns the mouse cursor's Y coordinate relative to the window's top edge.
Returns
| Type | Description |
|---|---|
number |
Mouse cursor Y coordinate in drawing units |
Example
local y = natiny.input.get_mouse_y()
Notes
- On desktop, input state is global across windows. The coordinate is relative to the window that produced the most recent cursor event. On web it is relative to the single canvas.