Number of acceleration measurements which occurred during last frame.
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Update() { if (Input.accelerationEventCount > 0) print("We got new acceleration measurements"); } }