Type String Event accelerometer Revision Release 2022.3683 Keywords accelerometer, name
For accelerometer events this property is set to "accelerometer"
.
local function onAccelerate( event ) print( event.name, event.xGravity, event.yGravity ) end Runtime:addEventListener( "accelerometer", onAccelerate )