net.silentlycrashing.gestures
Class MouseGestureAnalyzer
java.lang.Object
net.silentlycrashing.gestures.GestureAnalyzer
net.silentlycrashing.gestures.MouseGestureAnalyzer
public class MouseGestureAnalyzer
- extends GestureAnalyzer
Records gestures made using the mouse for analysis.
| Methods inherited from class net.silentlycrashing.gestures.GestureAnalyzer |
getGesture, getMinOffset, invokeStartActions, invokeStopActions, invokeUpdateActions, isDebug, isRecognized, isVerbose, matches, registerStartAction, registerStopAction, registerUpdateAction, setDebug, setMinOffset, setVerbose, start, stop, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buttonToCheck
private int buttonToCheck
MouseGestureAnalyzer
public MouseGestureAnalyzer(PApplet parent)
- Builds a MouseGestureAnalyzer with default button and minimum offset.
- Parameters:
parent - the parent PApplet
MouseGestureAnalyzer
public MouseGestureAnalyzer(PApplet parent,
int button)
- Builds a MouseGestureAnalyzer with default minimum offset.
- Parameters:
parent - the parent PAppletbutton - the mouse button to check
MouseGestureAnalyzer
public MouseGestureAnalyzer(PApplet parent,
int button,
int min)
- Builds a MouseGestureAnalyzer.
- Parameters:
parent - the parent PAppletbutton - the mouse button to checkmin - the minimum offset
mouseEvent
public void mouseEvent(MouseEvent event)
- Handles a MouseEvent.
Registered to be called automatically by the PApplet.
- Parameters:
event - the incoming MouseEvent