Loading services/sensorservice/SensorService.cpp +5 −6 Original line number Diff line number Diff line Loading @@ -210,12 +210,6 @@ void SensorService::onFirstRef() { registerSensor(new RotationVectorSensor(), !needRotationVector, true); registerSensor(new OrientationSensor(), !needRotationVector, true); bool needLinearAcceleration = (virtualSensorsNeeds & (1<<SENSOR_TYPE_LINEAR_ACCELERATION)) != 0; registerSensor(new LinearAccelerationSensor(list, count), !needLinearAcceleration, true); // virtual debugging sensors are not for user registerSensor( new CorrectedGyroSensor(list, count), true, true); registerSensor( new GyroDriftSensor(), true, true); Loading @@ -225,6 +219,11 @@ void SensorService::onFirstRef() { bool needGravitySensor = (virtualSensorsNeeds & (1<<SENSOR_TYPE_GRAVITY)) != 0; registerSensor(new GravitySensor(list, count), !needGravitySensor, true); bool needLinearAcceleration = (virtualSensorsNeeds & (1<<SENSOR_TYPE_LINEAR_ACCELERATION)) != 0; registerSensor(new LinearAccelerationSensor(list, count), !needLinearAcceleration, true); bool needGameRotationVector = (virtualSensorsNeeds & (1<<SENSOR_TYPE_GAME_ROTATION_VECTOR)) != 0; registerSensor(new GameRotationVectorSensor(), !needGameRotationVector, true); Loading Loading
services/sensorservice/SensorService.cpp +5 −6 Original line number Diff line number Diff line Loading @@ -210,12 +210,6 @@ void SensorService::onFirstRef() { registerSensor(new RotationVectorSensor(), !needRotationVector, true); registerSensor(new OrientationSensor(), !needRotationVector, true); bool needLinearAcceleration = (virtualSensorsNeeds & (1<<SENSOR_TYPE_LINEAR_ACCELERATION)) != 0; registerSensor(new LinearAccelerationSensor(list, count), !needLinearAcceleration, true); // virtual debugging sensors are not for user registerSensor( new CorrectedGyroSensor(list, count), true, true); registerSensor( new GyroDriftSensor(), true, true); Loading @@ -225,6 +219,11 @@ void SensorService::onFirstRef() { bool needGravitySensor = (virtualSensorsNeeds & (1<<SENSOR_TYPE_GRAVITY)) != 0; registerSensor(new GravitySensor(list, count), !needGravitySensor, true); bool needLinearAcceleration = (virtualSensorsNeeds & (1<<SENSOR_TYPE_LINEAR_ACCELERATION)) != 0; registerSensor(new LinearAccelerationSensor(list, count), !needLinearAcceleration, true); bool needGameRotationVector = (virtualSensorsNeeds & (1<<SENSOR_TYPE_GAME_ROTATION_VECTOR)) != 0; registerSensor(new GameRotationVectorSensor(), !needGameRotationVector, true); Loading