https://github.com/jmiskovic/lua-gestures
It is a library for training and recognizing single-stroke gestures, based on very efficient "$1 Unistroke Recognizer" algorithm. The library comes with basic set of gestures, and you can dynamically add your own ones.
![Image](http://depts.washington.edu/acelab/proj/dollar/unistrokes.gif)
This could come handy for those games where you conjure magic by drawing runes, or for mobile-based text entry, or for quick mouse/touch shortcuts inside any design tool.
I'm not author of original algorithm or of Lua port. I merely fixed some bugs, adapted the API to fit better with Love and made the simple demo. I hope somebody finds a use for it.