Type Number Event mouse Revision Current Public Release (2018.3326) Keywords mouse, y
The mouse cursor's current y position on screen in content coordinates.
-- Called when a mouse event has been received. local function onMouseEvent( event ) -- Print the mouse cursor's current position to the log. local message = "Mouse Position = (" .. tostring(event.x) .. "," .. tostring(event.y) .. ")" print( message ) end -- Add the mouse event listener. Runtime:addEventListener( "mouse", onMouseEvent )