Moai SDK  2.0
MOAIMotionSensor Class Reference
+ Inheritance diagram for MOAIMotionSensor:

Function List

getLevel
 
setCallback
 

Function Documentation

getLevel

Polls the current status of the level sensor.


function getLevel ( MOAIMotionSensor self )

Parameters
MOAIMotionSensorself
Returns
number x, number y, number z
setCallback

Sets or clears the callback to be issued when the level changes.


function setCallback ( MOAIMotionSensor self [, function callback ] )

Parameters
MOAIMotionSensorself
functioncallback Optional. Default value is nil.
Returns
nil