Implementation of mouse gesture recognition

Hello there! I am interested about possibility to make some mouse gesture recognition, for magic system, like Arx Fatalis, but is it possible to make it just with bp system? Some sort of comparing splines to already saved template i think, thx in advance