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