Swipe your hand or an object above the module and it will measure the direction of movement. Directions are based on the orientation of the device. If the power switch on the device is the bottom then a direction of LEFT is a swipe from the right side to the left side of the device.
What ports can I use it on?
3-6
Code
var swipe = Magic.modules.gesture.direction;
using Magic;
public class Demo : MonoBehaviour
{
// create a reference to the module
public Magic.Modules.GestureModule gesture;
void Start()
{
}
void Update()
{
// access the property of the module
Magic.Modules.GestureModule.GestureDirection swipe = gesture.direction;
}
}