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

List of all members.

Function List

  getLoc
  setCallback

Function Documentation

Returns the location of the pointer on the screen.


function getLoc ( MOAIPointerSensor self )
Parameters:
self ( MOAIPointerSensor )
Returns:
x ( number ), y ( number )

Sets or clears the callback to be issued when the pointer location changes.


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