QVISH 0.1
Public Types | Public Member Functions | List of all members
Wizt::VShakeDetector Class Reference

Detects "shake" events. More...

#include <VShakeDetector.hpp>

Public Types

enum  ShakeType { Nix , Shake1 , Shake2 }
 

Public Member Functions

ShakeType recordMoves (int dX, int dY=0)
 
void start ()
 
void stop ()
 
 VShakeDetector (unsigned int MinSignChanges, unsigned int ForgetTime=200, unsigned int ruleMaxTimeBetweenSignChanges=120)
 

Detailed Description

Detects "shake" events.

Setup with start() on button down, record movements(), stop() with button release. Parameters Min number of direction changes in x direction (MinSignChanges), time delay after detection restarts (ForgetTime), maximum time between the direction changes that is allowed.


The documentation for this class was generated from the following files: