Skip to content

Instantly share code, notes, and snippets.

@jaycody
Created March 12, 2014 07:06
Show Gist options
  • Save jaycody/9502186 to your computer and use it in GitHub Desktop.
Save jaycody/9502186 to your computer and use it in GitHub Desktop.
pro.KeyPressToggleSwitch
// KeyPress SpaceBar Toggle Switch
void keyPressed() {
if (key == ' '){
showVectors = !showVectors;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment