Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIMotionSensor Class Reference
Inheritance diagram for MOAIMotionSensor:
MOAISensor

List of all members.

Function List

  getLevel
  setCallback

Function Documentation

Polls the current status of the level sensor.


function getLevel ( MOAIMotionSensor self )
Parameters:
self ( MOAIMotionSensor )
Returns:
x ( number ), y ( number ), z ( number )

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


function setCallback ( MOAIMotionSensor self [, function callback ] )
Parameters:
self ( MOAIMotionSensor )
callback ( function ) Optional. Default value is nil.
Returns:
nil