Class SwipeTracker
java.lang.Object
nl.colorize.multimedialib.scene.effect.SwipeTracker
- All Implemented Interfaces:
Scene
Sub-scene that can be used to track swipe gestures for both mouse pointers
and touch controls. Instances need to be attached to the current scene in
order to receive frame updates.
Swipe gestures are detected using a tolerance. This is necessary to prevent mis-identifying clicks and taps as swipe gestures.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.colorize.multimedialib.scene.Scene
end, isCompleted, resize, start
-
Constructor Details
-
SwipeTracker
public SwipeTracker(float tolerance)
-
-
Method Details