MotionEvents

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void Start()
    {
        // Disable controller motion events
        VInput.MotionEvents = false;
    }

    void OnAccelerometer(int playerId, Vector3 data)
    {
        // This event will not fire...
        Debug.Log("Test output!");
    }
}

Activates or deactivates controller motion events in VolplaneBehaviour. This switch affects only the message / event system. The accelerometer and gyroscope can still be accessed through methods from VInput (e.g. GetAccelerometer()).