TiltSensor::~TiltSensor()
{
- Disable();
+ Stop();
}
-bool TiltSensor::Enable()
+bool TiltSensor::Start()
{
// Make sure sensor API is responding
bool success = Update();
return success;
}
-void TiltSensor::Disable()
+void TiltSensor::Stop()
{
if ( mTimer )
{
}
}
-bool TiltSensor::IsEnabled() const
+bool TiltSensor::IsStarted() const
{
return ( mTimer && mTimer.IsRunning() );
}
return mRotation;
}
-TiltSensor::TiltedSignalV2& TiltSensor::TiltedSignal()
+TiltSensor::TiltedSignalType& TiltSensor::TiltedSignal()
{
- return mTiltedSignalV2;
+ return mTiltedSignal;
}
void TiltSensor::SetUpdateFrequency( float frequencyHertz )
mSensorFrameworkHandle( -1 ),
mRoll( 0.0f ),
mPitch( 0.0f ),
- mRotation( 0.0f, Vector3::YAXIS ),
+ mRotation( Dali::ANGLE_0, Vector3::YAXIS ),
mRotationThreshold( 0.0f )
{
mRollValues.resize( NUMBER_OF_SAMPLES, 0.0f );
mPitch = newPitch;
mRotation = newRotation;
- if ( !mTiltedSignalV2.Empty() )
+ if ( !mTiltedSignal.Empty() )
{
Dali::TiltSensor handle( this );
- mTiltedSignalV2.Emit( handle );
+ mTiltedSignal.Emit( handle );
}
}