public class Trigger
extends java.lang.Object
Constructor and Description |
---|
Trigger(PApplet parent) |
Modifier and Type | Method and Description |
---|---|
void |
setTrigger(int interval,
java.lang.String methodToCall,
boolean shouldLoop)
Set the trigger
|
void |
update() |
public void setTrigger(int interval, java.lang.String methodToCall, boolean shouldLoop)
interval
- number of milliseconds to wait before the method is triggeredmethodToCall
- a string defining the method name to callshouldLoop
- a boolean indicating whether the trigger should looppublic void update()