Type Number Event mouse Revision Release 2022.3683 Keywords mouse, time
The time this mouse event occurred in milliseconds since the start of the application.
-- Called when a mouse event has been received. local function onMouseEvent( event ) -- Print the mouse event's timestamp to the log. local message = "Mouse Event Timestamp = " .. tostring(event.time) print( message ) end -- Add the mouse event listener. Runtime:addEventListener( "mouse", onMouseEvent )