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

List of all members.

Function List

  getValue
  getDelta
  setCallback

Function Documentation

Returns the delta of the wheel.


function getDelta ( MOAIWheelSensor self )
Parameters:
self ( MOAIWheelSensor )
Returns:
delta ( number )

Returns the current value of the wheel, based on delta events.


function getValue ( MOAIWheelSensor self )
Parameters:
self ( MOAIWheelSensor )
Returns:
value ( number )

Sets or clears the callback to be issued on a wheel delta event.


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