Depends on how complex are these shapes. Check out this post:
https://www.construct.net/en/forum/construct-3/general-discussion-7/unistroke-gesture-recognizer-154572
Also, there are a few paid templates on Scirra store:
https://www.scirra.com/store/search?q=gesture
Thank you dop2000, this have helped me a lot :)