MonoGame开发iOS会出现Microsoft.Devices.SensorsAccelerometer重力感应不灵敏的问题。monogame版本是3.5.1,目前的最先版本!

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

this._accelerometr = new Accelerometer();
this._accelerometr.TimeBetweenUpdates = new TimeSpan (0,0,0,0,333);
this._accelerometr.CurrentValueChanged += (new EventHandler>(this._accelerometr_CurrentValueChanged));