Created
October 3, 2012 05:51
-
-
Save error454/3825281 to your computer and use it in GitHub Desktop.
BLOG: Traditional Keyboard Before
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
function UserAI.onKeyboardKeyDown ( kKeyCode ) | |
-------------------------------------------------------------------------------- | |
local sState = application.getCurrentUserAIState("UserAI") | |
if( sState == "Menu" ) | |
then | |
if( kKeyCode == input.kKeyUp ) | |
then | |
this.changeSelection() | |
elseif( kKeyCode == input.kKeyEnter ) | |
then | |
this.selectMenuItem() | |
end | |
end | |
-------------------------------------------------------------------------------- | |
end | |
-------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------- | |
function UserAI.Menu_onLoop ( ) | |
-------------------------------------------------------------------------------- | |
this.animateMenu() | |
-------------------------------------------------------------------------------- | |
end | |
-------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment