mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-23 00:59:28 +08:00
Remove some format rule (#10919)
* remove some rules * format all codes with new format rule
This commit is contained in:
@@ -38,7 +38,7 @@ void Accelerometer::setAccelerometerInterval(float interval) {
|
||||
|
||||
const Accelerometer::MotionValue &Accelerometer::getDeviceMotionValue() {
|
||||
static MotionValue motionValue;
|
||||
float * v = getDeviceMotionValueJNI();
|
||||
float *v = getDeviceMotionValueJNI();
|
||||
|
||||
if (v) {
|
||||
motionValue.accelerationIncludingGravityX = v[0];
|
||||
@@ -50,7 +50,7 @@ const Accelerometer::MotionValue &Accelerometer::getDeviceMotionValue() {
|
||||
motionValue.accelerationZ = v[5];
|
||||
|
||||
motionValue.rotationRateAlpha = v[6];
|
||||
motionValue.rotationRateBeta = v[7];
|
||||
motionValue.rotationRateBeta = v[7];
|
||||
motionValue.rotationRateGamma = v[8];
|
||||
} else {
|
||||
memset(&motionValue, 0, sizeof(motionValue));
|
||||
|
||||
Reference in New Issue
Block a user