net.silentlycrashing.gestures.preset
Class PostHShakeListener
java.lang.Object
net.silentlycrashing.gestures.GestureListener
net.silentlycrashing.gestures.PostGestureListener
net.silentlycrashing.gestures.preset.PostHShakeListener
- All Implemented Interfaces:
- HShake
public class PostHShakeListener
- extends PostGestureListener
- implements HShake
Listens for a horizontal shake after the movement is completed.
| Fields inherited from interface net.silentlycrashing.gestures.preset.HShake |
HS_PATTERN |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostHShakeListener
public PostHShakeListener(PApplet parent,
GestureAnalyzer analyzer)
- Builds a PostHShakeListener covering the entire canvas.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzer
PostHShakeListener
public PostHShakeListener(PApplet parent,
GestureAnalyzer analyzer,
int x,
int y,
int w,
int h)
- Builds a bounded PostHShakeListener.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzerx - the x-coordinate of the bounding Rectangley - the y-coordinate of the bounding Rectanglew - the width of the bounding Rectangleh - the height of the bounding Rectangle
PostHShakeListener
public PostHShakeListener(PApplet parent,
GestureAnalyzer analyzer,
Rectangle bounds)
- Builds a bounded PostHShakeListener.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzerbounds - the bounding Rectangle