1 #include "input-options.h"
3 #include <dali/internal/event/common/thread-local-storage.h>
4 #include <dali/internal/event/events/gesture-event-processor.h>
6 using Dali::Internal::GestureEventProcessor;
7 using Dali::Internal::ThreadLocalStorage;
15 void SetPanGesturePredictionMode( int mode )
17 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
18 eventProcessor.SetPanGesturePredictionMode(mode);
21 void SetPanGesturePredictionAmount( unsigned int amount )
23 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
24 eventProcessor.SetPanGesturePredictionAmount(amount);
27 void SetPanGestureMaximumPredictionAmount( unsigned int amount )
29 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
30 eventProcessor.SetPanGestureMaximumPredictionAmount(amount);
33 void SetPanGestureMinimumPredictionAmount( unsigned int amount )
35 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
36 eventProcessor.SetPanGestureMinimumPredictionAmount(amount);
39 void SetPanGesturePredictionAmountAdjustment( unsigned int amount )
41 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
42 eventProcessor.SetPanGesturePredictionAmountAdjustment(amount);
45 void SetPanGestureSmoothingMode( int mode )
47 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
48 eventProcessor.SetPanGestureSmoothingMode(mode);
51 void SetPanGestureSmoothingAmount( float amount )
53 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
54 eventProcessor.SetPanGestureSmoothingAmount(amount);
57 void SetPanGestureUseActualTimes( bool value )
59 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
60 eventProcessor.SetPanGestureUseActualTimes( value );
63 void SetPanGestureInterpolationTimeRange( int value )
65 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
66 eventProcessor.SetPanGestureInterpolationTimeRange( value );
69 void SetPanGestureScalarOnlyPredictionEnabled( bool value )
71 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
72 eventProcessor.SetPanGestureScalarOnlyPredictionEnabled( value );
75 void SetPanGestureTwoPointPredictionEnabled( bool value )
77 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
78 eventProcessor.SetPanGestureTwoPointPredictionEnabled( value );
81 void SetPanGestureTwoPointInterpolatePastTime( int value )
83 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
84 eventProcessor.SetPanGestureTwoPointInterpolatePastTime( value );
87 void SetPanGestureTwoPointVelocityBias( float value )
89 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
90 eventProcessor.SetPanGestureTwoPointVelocityBias( value );
93 void SetPanGestureTwoPointAccelerationBias( float value )
95 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
96 eventProcessor.SetPanGestureTwoPointAccelerationBias( value );
99 void SetPanGestureMultitapSmoothingRange( int value )
101 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
102 eventProcessor.SetPanGestureMultitapSmoothingRange( value );
105 void SetPanGestureMinimumDistance( int value )
107 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
108 eventProcessor.SetPanGestureMinimumDistance( value );
111 void SetPanGestureMinimumPanEvents( int value )
113 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
114 eventProcessor.SetPanGestureMinimumPanEvents( value );
117 void SetPinchGestureMinimumDistance( float value )
119 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
120 eventProcessor.SetPinchGestureMinimumDistance( value );
123 void SetLongPressMinimumHoldingTime( unsigned int value )
125 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
126 eventProcessor.SetLongPressMinimumHoldingTime( value );
130 } // namespace Integration