X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fubuntu%2Ftilt-sensor-impl-ubuntu.cpp;h=95f5724a5f535b1642959262ab393e3479d09298;hb=9b639a223f9e0c389f646bbb6f09608476495c3d;hp=491c1f781c0051932616d682e478430a1c78ef53;hpb=220687d7338619331c45e672d1f22111f38aa65d;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/ubuntu/tilt-sensor-impl-ubuntu.cpp b/adaptors/ubuntu/tilt-sensor-impl-ubuntu.cpp index 491c1f7..95f5724 100644 --- a/adaptors/ubuntu/tilt-sensor-impl-ubuntu.cpp +++ b/adaptors/ubuntu/tilt-sensor-impl-ubuntu.cpp @@ -92,10 +92,10 @@ Dali::TiltSensor TiltSensor::Get() TiltSensor::~TiltSensor() { - Disable(); + Stop(); } -bool TiltSensor::Enable() +bool TiltSensor::Start() { // Make sure sensor API is responding bool success = Update(); @@ -118,7 +118,7 @@ bool TiltSensor::Enable() return success; } -void TiltSensor::Disable() +void TiltSensor::Stop() { if ( mTimer ) { @@ -127,7 +127,7 @@ void TiltSensor::Disable() } } -bool TiltSensor::IsEnabled() const +bool TiltSensor::IsStarted() const { return ( mTimer && mTimer.IsRunning() ); } @@ -206,7 +206,7 @@ TiltSensor::TiltSensor() 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 );