Moai SDK
2.0
|
Function List | |
down | |
isDown | |
isUp | |
up | |
setCallback | |
|
Checks to see if the button was pressed during the last iteration.
function down ( MOAIButtonSensor self )
MOAIButtonSensor | self |
|
Checks to see if the button is currently down.
function isDown ( MOAIButtonSensor self )
MOAIButtonSensor | self |
|
Checks to see if the button is currently up.
function isUp ( MOAIButtonSensor self )
MOAIButtonSensor | self |
|
Sets or clears the callback to be issued when button events occur.
function setCallback ( MOAIButtonSensor self [, function callback ] )
MOAIButtonSensor | self |
function | callback Optional. Default value is nil. |
|
Checks to see if the button was released during the last iteration.
function up ( MOAIButtonSensor self )
MOAIButtonSensor | self |