Hey all. I'm interested in incorporating some DS-style mouse gestures for some game prototypes.
It seems to me, that the thing to do would be along the lines of:
- cache all mouse points when some activator key is held
- compare mouse cache to list of known gestures using a curve matching algorithm
The first step is reasonable, since the game idea I have involves pressing a 'manipulate' key anyway. The second step seems fairly straightforward, but I'm not particularly familiar with any curve matching algorithms, or any best practices on the topic.
Do any of you have experience on doing something like this?
Can you recommend any third party libraries?
Keep in mind, my development environment is on Linux in C/C++, so any Mac or Windows specific stuff should automatically be discounted.
I foraged for some old threads on the topic and uncovered this Game Maker specific one:
http://forums.tigsource.com/index.php?topic=4090.0Doing some Google searches turns up quite a few results for a Java implementation (
http://www.smardec.com/products/mouse-gestures.html), some results for an IE plugin, some for a Firefox Addon, several for Opera's mouse gesture support, etc., etc.