Skip to content

Instantly share code, notes, and snippets.

@mrmemmo
Created March 5, 2019 18:40
Show Gist options
  • Save mrmemmo/ef43d41d549d9cfd54f3f4a97f98cc1f to your computer and use it in GitHub Desktop.
Save mrmemmo/ef43d41d549d9cfd54f3f4a97f98cc1f to your computer and use it in GitHub Desktop.
char letter;
String sym = "AAPL";
void setup(){
}
void draw(){
//In draw method
text("Current key: " + letter, 10, 40);
}
// keyTyped
void keyTyped() {
if ((key >= 'A' && key <= 'z') || key == ' ') {
letter = key;
letter = Character.toUpperCase(letter);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment