X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Finput-options.cpp;h=b432b9e4976bac5cd71c56edcfef7c064c5bca7d;hb=a4eb68faf1e75d213c951a7d4d1b67727247917a;hp=2efe516e1f45f3676ed856eaf046942a7e23907c;hpb=7c6f8ed43521c52d6cc46a7e3e3e40069514f818;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/input-options.cpp b/dali/integration-api/input-options.cpp index 2efe516..b432b9e 100644 --- a/dali/integration-api/input-options.cpp +++ b/dali/integration-api/input-options.cpp @@ -18,13 +18,31 @@ void SetPanGesturePredictionMode( int mode ) eventProcessor.SetPanGesturePredictionMode(mode); } -void SetPanGesturePredictionAmount(unsigned int amount) +void SetPanGesturePredictionAmount( unsigned int amount ) { GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); eventProcessor.SetPanGesturePredictionAmount(amount); } -void SetPanGestureSmoothingMode(int mode) +void SetPanGestureMaximumPredictionAmount( unsigned int amount ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureMaximumPredictionAmount(amount); +} + +void SetPanGestureMinimumPredictionAmount( unsigned int amount ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureMinimumPredictionAmount(amount); +} + +void SetPanGesturePredictionAmountAdjustment( unsigned int amount ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGesturePredictionAmountAdjustment(amount); +} + +void SetPanGestureSmoothingMode( int mode ) { GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); eventProcessor.SetPanGestureSmoothingMode(mode); @@ -36,6 +54,79 @@ void SetPanGestureSmoothingAmount( float amount ) eventProcessor.SetPanGestureSmoothingAmount(amount); } +void SetPanGestureUseActualTimes( bool value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureUseActualTimes( value ); +} + +void SetPanGestureInterpolationTimeRange( int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureInterpolationTimeRange( value ); +} + +void SetPanGestureScalarOnlyPredictionEnabled( bool value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureScalarOnlyPredictionEnabled( value ); +} + +void SetPanGestureTwoPointPredictionEnabled( bool value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureTwoPointPredictionEnabled( value ); +} + +void SetPanGestureTwoPointInterpolatePastTime( int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureTwoPointInterpolatePastTime( value ); +} + +void SetPanGestureTwoPointVelocityBias( float value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureTwoPointVelocityBias( value ); +} + +void SetPanGestureTwoPointAccelerationBias( float value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureTwoPointAccelerationBias( value ); +} + +void SetPanGestureMultitapSmoothingRange( int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureMultitapSmoothingRange( value ); +} + +void SetPanGestureMinimumDistance( int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureMinimumDistance( value ); +} + +void SetPanGestureMinimumPanEvents( int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPanGestureMinimumPanEvents( value ); +} + +void SetPinchGestureMinimumDistance( float value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetPinchGestureMinimumDistance( value ); +} + +void SetLongPressMinimumHoldingTime( unsigned int value ) +{ + GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor(); + eventProcessor.SetLongPressMinimumHoldingTime( value ); +} + + } // namespace Integration } // namespace Dali