There are some games where you need to make special movement with your mouse (spell casting or any other action).
So basically, how can I compare mouse movement to my pattern (let's say defined by series of points (x, y). I assume there's no need to track the position every frame, there must be an interval.
But in terms of technique, how can I do it?
