MonoGame在iOS平台使用Microsoft.Devices.Sensors.Accelerometer会出现重力感应不灵敏的问题。monogame版本是3.5.1

需要代码修改重力感应的刷新频率才能解决这个问题!关键是TimeBetweenUpdates 代码如下:

this._accelerometr = new Accelerometer();
this._accelerometr.TimeBetweenUpdates = new TimeSpan (0,0,0,0,333);
//this._accelerometr.TimeBetweenUpdates=(TimeSpan.FromMilliseconds(10));
this._accelerometr.CurrentValueChanged += (new EventHandler<SensorReadingEventArgs>(this._accelerometr_CurrentValueChanged));