I’m using the Game Control Plus library to configure a game pad to control a Processing GUI. It’s working good and I’m happy with it but I’m stuck now. I would like to change the behavior of the game pad buttons pressing the Select button, one behavior to navigate into menu options and one behavior to control some stepper motors.
I want to plug the button to a method for one behavior, unplug it, and plug the button to another method for another behavior, but I don’t know how to unplug the button from the first method.
Next code works well:
void setup ()
control = ControlIO.getInstance(this);
gPad = control.getMatchedDeviceSilent(“Dragon”);
if (gPad == null)
println(“Joystick not connected.”);
System.exit(-1); // End the program NOW!
But I don know how to unplug it
Please, help me to unplug this method from my btnRUp button. Thx!!