use of processing.core.PApplet in project hid-serial by rayshobby.
the class G4P method addControl.
/**
* Used internally to register a control with its applet.
* @param control
*/
static void addControl(GAbstractControl control) {
PApplet app = control.getPApplet();
// The first applet must be the sketchApplet
if (G4P.sketchApplet == null)
G4P.sketchApplet = app;
GWindowInfo winfo = windows.get(app);
if (winfo == null) {
winfo = new GWindowInfo(app);
windows.put(app, winfo);
}
winfo.addControl(control);
}
Aggregations