This is a set of scripts for a simple swipe system that returns direction, distance, and speed of swipes. Supports multi-touch.
The scripts included are:
Swipe Sys Init - Initializes the system by preparing some variables and data structures.
Swipe Start - Starts a new swipe and returns it's id.
Swipe End - Ends a swipe.,
Swipe Get Direction - Returns the direction of a swipe.
Swipe Get Distance - Returns the distance of a swipe.
Swipe Get Speed - Returns the speed of a swipe.
Swipe Sys Clear - Clears the data structures and resets the system to save memory.
Swipe Sys Cleanup - Removes the system by deleting the data structures and resetting variables.
Code Structures:
swipe_sys_init();
swipe_start(device);
swipe_end(id);
swipe_get_direction(id);
swipe_get_distance(id);
swipe_get_speed(id);
swipe_sys_clear();
swipe_sys_cleanup();
End User Licence Agreement (EULA).