|
Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
| getHeading | |
| setCallback | |
Returns the current heading according to the built-in compass.
function getHeading ( MOAICompassSensor self )
| self | ( MOAICompassSensor ) |
Sets or clears the callback to be issued when the heading changes.
function setCallback ( MOAICompassSensor self [, function callback ] )
| self | ( MOAICompassSensor ) |
| callback | ( function ) Optional. Default value is nil. |