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

List of all members.

Function List

  getVector
  setCallback

Function Documentation

Returns the joystick vector.


function getVector ( MOAIJoystickSensor self )
Parameters:
self ( MOAIJoystickSensor )
Returns:
x ( number ), y ( number )

Sets or clears the callback to be issued when the joystick vector changes.


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