plugins/shakedetector: Optimize ShakeDetector
Only store one history item for movement in the same direction. With this optimization I measure m_history.size() <= 15 for all kinds of movements, including back and forth, and circular.
Only store one history item for movement in the same direction. With this optimization I measure m_history.size() <= 15 for all kinds of movements, including back and forth, and circular.