event.name

Type String
Event accelerometer
Revision Release 2024.3703
Keywords accelerometer, name

Overview

For accelerometer events this property is set to "accelerometer".

Example

local function onAccelerate( event )
    print( event.name, event.xGravity, event.yGravity )
end
 
Runtime:addEventListener( "accelerometer", onAccelerate )