Created
March 5, 2019 18:40
-
-
Save mrmemmo/ef43d41d549d9cfd54f3f4a97f98cc1f to your computer and use it in GitHub Desktop.
This file contains 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
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