mirror of https://github.com/axmolengine/axmol.git
fix an Accelerometer second to microsecond convertion error in Android platform (#17519)
1 second = 1000000 microsecond
This commit is contained in:
parent
1f8eb3b7f5
commit
e8c752126d
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue