Type Number Event relativeTouch Revision Current Public Release (2018.3326) Keywords touch, relativeTouch, time
Provides an easy way to get the time in milliseconds since the start of the application, from within a relative touch event listener function.
function printAppTimeOnTouch( event ) if ( event.phase ~= "moved" ) then print ( "Input " .. event.phase .. " " .. event.time .. " seconds after app started." ) end return true end Runtime:addEventListener( "relativeTouch" , printAppTimeOnTouch ) |