Just a few basic scripts which will recognize what motion you do. Try drawing a straight line in any direction and it will identify it as up, right, down, or left. If you draw shapes, it will not work properly. Feel free to use this as long as you give credit. You could use it as a spellcasting system in a game, if you want.