Skip to content

Instantly share code, notes, and snippets.

@kritzikratzi
Created December 15, 2010 16:53
Show Gist options
  • Save kritzikratzi/742240 to your computer and use it in GitHub Desktop.
Save kritzikratzi/742240 to your computer and use it in GitHub Desktop.
if( keyCode == ENTER ){
if( focusElement == rect2 ) ....
if( focusElement == rect4 ) ...
// afaik the "name" button is rect 1, in which case we just loop through all lines and print the names
if( focusElement == rect1 ){
for( int i =0; i < lines.length; i++ ){
println( lines[i].substring( NAME_START, NAME_END ) );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment