1 #ifndef __DALI_INTEGRATION_INPUT_OPTIONS_H__
2 #define __DALI_INTEGRATION_INPUT_OPTIONS_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/public-api/common/dali-common.h>
33 * @brief Called by adaptor to set the pan gesture prediction mode from
34 * an environment variable
36 * @pre Should be called after Core creation.
37 * @param mode The pan gesture prediction mode.
39 DALI_IMPORT_API void SetPanGesturePredictionMode( int mode );
42 * @brief Called by adaptor to set the prediction amount of the pan gesture
43 * from an environment variable
45 * @param[in] amount The prediction amount in milliseconds
47 DALI_IMPORT_API void SetPanGesturePredictionAmount(unsigned int amount);
50 * @brief Sets the upper bound of the prediction amount for clamping
51 * from an environment variable
53 * @param[in] amount The prediction amount in milliseconds
55 DALI_IMPORT_API void SetPanGestureMaximumPredictionAmount( unsigned int amount );
58 * @brief Sets the lower bound of the prediction amount for clamping
59 * from an environment variable
61 * @param[in] amount The prediction amount in milliseconds
63 DALI_IMPORT_API void SetPanGestureMinimumPredictionAmount( unsigned int amount );
66 * @brief Sets the prediction amount to adjust when the pan velocity is changed
67 * from an environment variable. If the pan velocity is accelerating, the prediction
68 * amount will be increased by the specified amount until it reaches the upper bound.
69 * If the pan velocity is decelerating, the prediction amount will be decreased by
70 * the specified amount until it reaches the lower bound.
72 * @param[in] amount The prediction amount in milliseconds
74 DALI_IMPORT_API void SetPanGesturePredictionAmountAdjustment( unsigned int amount );
77 * @brief Called to set how pan gestures smooth input
79 * @param[in] mode The smoothing mode to use
81 DALI_IMPORT_API void SetPanGestureSmoothingMode( int mode );
84 * @brief Sets the smoothing amount of the pan gesture
86 * @param[in] amount The smoothing amount [0.0f,1.0f] - 0.0f would be no smoothing, 1.0f maximum smoothing
88 DALI_IMPORT_API void SetPanGestureSmoothingAmount( float amount );
91 * @brief Sets whether to use actual times of the real gesture and frames or not.
93 * @param[in] value True = use actual times, False = use perfect values
95 DALI_IMPORT_API void SetPanGestureUseActualTimes( bool value );
98 * @brief Sets the interpolation time range (ms) of past points to use (with weights) when interpolating.
100 * @param[in] value Time range in ms
102 DALI_IMPORT_API void SetPanGestureInterpolationTimeRange( int value );
105 * @brief Sets whether to use scalar only prediction, which when enabled, ignores acceleration.
107 * @param[in] value True = use scalar prediction only
109 DALI_IMPORT_API void SetPanGestureScalarOnlyPredictionEnabled( bool value );
112 * @brief Sets whether to use two point prediction. This combines two interpolated points to get more steady acceleration and velocity values.
114 * @param[in] value True = use two point prediction
116 DALI_IMPORT_API void SetPanGestureTwoPointPredictionEnabled( bool value );
119 * @brief Sets the time in the past to interpolate the second point when using two point interpolation.
121 * @param[in] value Time in past in ms
123 DALI_IMPORT_API void SetPanGestureTwoPointInterpolatePastTime( int value );
126 * @brief Sets the two point velocity bias. This is the ratio of first and second points to use for velocity.
128 * @param[in] value 0.0f = 100% first point. 1.0f = 100% of second point.
130 DALI_IMPORT_API void SetPanGestureTwoPointVelocityBias( float value );
133 * @brief Sets the two point acceleration bias. This is the ratio of first and second points to use for acceleration.
135 * @param[in] value 0.0f = 100% first point. 1.0f = 100% of second point.
137 DALI_IMPORT_API void SetPanGestureTwoPointAccelerationBias( float value );
140 * @brief Sets the range of time (ms) of points in the history to perform multitap smoothing with (if enabled).
142 * @param[in] value Time in past in ms
144 DALI_IMPORT_API void SetPanGestureMultitapSmoothingRange( int value );
147 } // namespace Integration
151 #endif // __DALI_INTEGRATION_INPUT_OPTIONS_H__