Skip to content

Instantly share code, notes, and snippets.

@error454
Created October 3, 2012 05:51
Show Gist options
  • Save error454/3825281 to your computer and use it in GitHub Desktop.
Save error454/3825281 to your computer and use it in GitHub Desktop.
BLOG: Traditional Keyboard Before
--------------------------------------------------------------------------------
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