2efe516e1f45f3676ed856eaf046942a7e23907c
[platform/core/uifw/dali-core.git] / dali / integration-api / input-options.cpp
1 #include "input-options.h"
2
3 #include <dali/internal/event/common/thread-local-storage.h>
4 #include <dali/internal/event/events/gesture-event-processor.h>
5
6 using Dali::Internal::GestureEventProcessor;
7 using Dali::Internal::ThreadLocalStorage;
8
9 namespace Dali
10 {
11
12 namespace Integration
13 {
14
15 void SetPanGesturePredictionMode( int mode )
16 {
17   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
18   eventProcessor.SetPanGesturePredictionMode(mode);
19 }
20
21 void SetPanGesturePredictionAmount(unsigned int amount)
22 {
23   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
24   eventProcessor.SetPanGesturePredictionAmount(amount);
25 }
26
27 void SetPanGestureSmoothingMode(int mode)
28 {
29   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
30   eventProcessor.SetPanGestureSmoothingMode(mode);
31 }
32
33 void SetPanGestureSmoothingAmount( float amount )
34 {
35   GestureEventProcessor& eventProcessor = ThreadLocalStorage::Get().GetGestureEventProcessor();
36   eventProcessor.SetPanGestureSmoothingAmount(amount);
37 }
38
39 } // namespace Integration
40
41 } // namespace Dali