Ejemplo n.º 1
0
 public SensorManager()
 {
     _DroidSensorManager = (Android.Hardware.SensorManager)Application.Context.GetSystemService(Context.SensorService);
     _Sensors            = new List <ISensor>();
 }
Ejemplo n.º 2
0
 public Accelerometer( IWindow window )
 {
     OpenTK.Platform.Android.AndroidGameView gameView = ( window.Handle as OpenTK.Platform.Android.AndroidGameView );
     sensorManager = gameView.Context.GetSystemService ( Android.Content.Context.SensorService ) as Android.Hardware.SensorManager;
     sensor = sensorManager.GetDefaultSensor ( Android.Hardware.SensorType.Accelerometer );
 }