Table of Contents

Accelerometer

Inherits: Object

Supported platforms:

Available since version: Gideros 2012.8

Description:

The Accelerometer class is used to access accelerometer data.

Common uses and examples:

--create instance
local accelerometer = Accelerometer.new()
--start receiving data
accelerometer:start()
---get values for example on each enter frame event
local x, y, z = accelerometer:getAcceleration()
print(x, y, z)

--once you don't need it, stop it
accelerometer:stop()

Methods, events and properties: