Icon

Simple Swipe System

Nathan Auckett

You must be logged in to obtain assets

Contact Publisher

Description

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).

Age Rating: 4+

Version

GMS1 - Version 1.0.1. Published August 21, 2014

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top