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;
13 void SetPanGesturePredictionMode(int mode)
15 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
16 eventProcessor.SetPanGesturePredictionMode(mode);
19 void SetPanGesturePredictionAmount(unsigned int amount)
21 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
22 eventProcessor.SetPanGesturePredictionAmount(amount);
25 void SetPanGestureMaximumPredictionAmount(unsigned int amount)
27 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
28 eventProcessor.SetPanGestureMaximumPredictionAmount(amount);
31 void SetPanGestureMinimumPredictionAmount(unsigned int amount)
33 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
34 eventProcessor.SetPanGestureMinimumPredictionAmount(amount);
37 void SetPanGesturePredictionAmountAdjustment(unsigned int amount)
39 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
40 eventProcessor.SetPanGesturePredictionAmountAdjustment(amount);
43 void SetPanGestureSmoothingMode(int mode)
45 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
46 eventProcessor.SetPanGestureSmoothingMode(mode);
49 void SetPanGestureSmoothingAmount(float amount)
51 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
52 eventProcessor.SetPanGestureSmoothingAmount(amount);
55 void SetPanGestureUseActualTimes(bool value)
57 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
58 eventProcessor.SetPanGestureUseActualTimes(value);
61 void SetPanGestureInterpolationTimeRange(int value)
63 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
64 eventProcessor.SetPanGestureInterpolationTimeRange(value);
67 void SetPanGestureScalarOnlyPredictionEnabled(bool value)
69 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
70 eventProcessor.SetPanGestureScalarOnlyPredictionEnabled(value);
73 void SetPanGestureTwoPointPredictionEnabled(bool value)
75 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
76 eventProcessor.SetPanGestureTwoPointPredictionEnabled(value);
79 void SetPanGestureTwoPointInterpolatePastTime(int value)
81 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
82 eventProcessor.SetPanGestureTwoPointInterpolatePastTime(value);
85 void SetPanGestureTwoPointVelocityBias(float value)
87 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
88 eventProcessor.SetPanGestureTwoPointVelocityBias(value);
91 void SetPanGestureTwoPointAccelerationBias(float value)
93 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
94 eventProcessor.SetPanGestureTwoPointAccelerationBias(value);
97 void SetPanGestureMultitapSmoothingRange(int value)
99 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
100 eventProcessor.SetPanGestureMultitapSmoothingRange(value);
103 void SetPanGestureMinimumDistance(int value)
105 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
106 eventProcessor.SetPanGestureMinimumDistance(value);
109 void SetPanGestureMinimumPanEvents(int value)
111 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
112 eventProcessor.SetPanGestureMinimumPanEvents(value);
115 void SetPinchGestureMinimumDistance(float value)
117 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
118 eventProcessor.SetPinchGestureMinimumDistance(value);
121 void SetPinchGestureMinimumTouchEvents(uint32_t value)
123 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
124 eventProcessor.SetPinchGestureMinimumTouchEvents(value);
127 void SetPinchGestureMinimumTouchEventsAfterStart(uint32_t value)
129 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
130 eventProcessor.SetPinchGestureMinimumTouchEventsAfterStart(value);
133 void SetRotationGestureMinimumTouchEvents(uint32_t value)
135 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
136 eventProcessor.SetRotationGestureMinimumTouchEvents(value);
139 void SetRotationGestureMinimumTouchEventsAfterStart(uint32_t value)
141 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
142 eventProcessor.SetRotationGestureMinimumTouchEventsAfterStart(value);
145 void SetLongPressMinimumHoldingTime(unsigned int value)
147 GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
148 eventProcessor.SetLongPressMinimumHoldingTime(value);
151 } // namespace Integration