Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
keyDown | |
keyIsDown | |
keyIsUp | |
keyUp | |
setCallback |
Checks to see if one or more buttons were pressed during the last iteration.
function keyDown ( MOAIKeyboardSensor self, string keyCodes )
self | ( MOAIKeyboardSensor ) |
keyCodes | ( string ) Keycode value(s) to be checked against the input table. |
function keyDown ( MOAIKeyboardSensor self, number keyCode )
self | ( MOAIKeyboardSensor ) |
keyCode | ( number ) Keycode value to be checked against the input table. |
Checks to see if the button is currently down.
function keyIsDown ( MOAIKeyboardSensor self, string keyCodes )
self | ( MOAIKeyboardSensor ) |
keyCodes | ( string ) Keycode value(s) to be checked against the input table. |
function keyIsDown ( MOAIKeyboardSensor self, number keyCode )
self | ( MOAIKeyboardSensor ) |
keyCode | ( number ) Keycode value to be checked against the input table. |
Checks to see if the specified key is currently up.
function keyIsUp ( MOAIKeyboardSensor self, string keyCodes )
self | ( MOAIKeyboardSensor ) |
keyCodes | ( string ) Keycode value(s) to be checked against the input table. |
function keyIsUp ( MOAIKeyboardSensor self, number keyCode )
self | ( MOAIKeyboardSensor ) |
keyCode | ( number ) Keycode value to be checked against the input table. |
Checks to see if the specified key was released during the last iteration.
function keyUp ( MOAIKeyboardSensor self, string keyCodes )
self | ( MOAIKeyboardSensor ) |
keyCodes | ( string ) Keycode value(s) to be checked against the input table. |
function keyUp ( MOAIKeyboardSensor self, number keyCode )
self | ( MOAIKeyboardSensor ) |
keyCode | ( number ) Keycode value to be checked against the input table. |
Sets or clears the callback to be issued when a key is pressed.
function setCallback ( MOAIKeyboardSensor self [, function callback ] )
self | ( MOAIKeyboardSensor ) |
callback | ( function ) Optional. Default value is nil. |