@Override public void onResume() { super.onResume(); // TODO need to bring back app state here! if (DEBUG) System.out.println("PApplet.onResume() called"); paused = false; handleMethods("resume"); //start(); // kick the thread back on resume(); }
/** * Called by the browser or applet viewer to inform this applet that it * should start its execution. It is called after the init method and * each time the applet is revisited in a Web page. * <p/> * Called explicitly via the first call to PApplet.paint(), because * PAppletGL needs to have a usable screen before getting things rolling. */ public void start() { // paused = false; // unpause the thread // removing for 3.0a5, don't think we want this here resume(); handleMethods("resume"); surface.resumeThread(); }