Moai SDK  2.0
MOAIPointerSensor Class Reference
+ Inheritance diagram for MOAIPointerSensor:

Function List

getLoc
 
setCallback
 

Function Documentation

getLoc

Returns the location of the pointer on the screen.


function getLoc ( MOAIPointerSensor self )

Parameters
MOAIPointerSensorself
Returns
number x, number y
setCallback

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


function setCallback ( MOAIPointerSensor self [, function callback ] )

Parameters
MOAIPointerSensorself
functioncallback Optional. Default value is nil.
Returns
nil