fix an Accelerometer second to microsecond convertion error in Android platform (#17519)

1 second = 1000000 microsecond
This commit is contained in:
blackcruiser 2017-03-16 12:00:58 +08:00 committed by minggo
parent 1f8eb3b7f5
commit e8c752126d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class Cocos2dxAccelerometer implements SensorEventListener {
this.mSensorManager.registerListener(this, this.mAccelerometer, SensorManager.SENSOR_DELAY_GAME);
} else {
//convert seconds to microseconds
this.mSensorManager.registerListener(this, this.mAccelerometer, (int)(interval*100000));
this.mSensorManager.registerListener(this, this.mAccelerometer, (int)(interval*1000000));
}
}