Recognizing patterns when drawing over the iPhone screen

前端 未结 2 483
刺人心
刺人心 2021-02-06 17:18

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.<

相关标签:
2条回答
  • 2021-02-06 17:46

    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.

    0 讨论(0)
  • 2021-02-06 17:54

    The patterns you're referring to are known as "gestures".

    This code seems to be what you're looking for.

    0 讨论(0)
提交回复
热议问题