Created
October 3, 2012 05:53
-
-
Save error454/3825287 to your computer and use it in GitHub Desktop.
BLOG: Stateful Keyboard
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.Menu_onLoop ( ) | |
-------------------------------------------------------------------------------- | |
local up = this.getKey( 0, "up", true ) | |
local enter = this.getKey( 0, "enter", true ) | |
if( up ) | |
then | |
this.changeSelection() | |
elseif( enter ) | |
then | |
this.selectMenuItem() | |
end | |
this.animateMenu() | |
-------------------------------------------------------------------------------- | |
end | |
-------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment