Using G4P GUI Builder Buttons

edited March 2014 in Library Questions

Hi all, I'm new to Processing and I've used the G4P tool to build an interface involving a number of buttons.

How do I go about writing some code so that when Q is pressed on the keyboard a button named QPad is executed? The code I have at the moment is:

public void QPad_click(GButton source, GEvent event) { //_CODE_:QPad:865502:
  println("QPad - GButton event occured " + System.currentTimeMillis()%10000000 ); 
} //_CODE_:QPad:865502:

void keyPressed(){
 if (key == 'q' || key == 'Q'){
Sign In or Register to comment.