I\'m trying to write a game where the user can issue commands by drawing certain patterns with his fingers..for example, if he draws a circle, an \'S\' letter, an expiral, etc.<
This site demos a very simple, easy to implement gesture recognizer, which they wrote in Javascript. I've implemented it myself in another language, and found it quite easy to deal with. They've got code, and a paper describing the algorithm; everything you could need.