Change-Id: I213e92bbc09a34253bda0ec0c23740d234d5bb32
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
mPanGesturePredictionMode = mode;
}
-void EnvironmentOptions::SetPanGesturePredictionAmount(float amount)
+void EnvironmentOptions::SetPanGesturePredictionAmount(unsigned int amount)
{
mPanGesturePredictionAmount = amount;
}
/**
* @brief Sets the prediction amount of the pan gesture
*
- * @param[in] amount The prediction amount, 0.0f being next vsync and each 1.0f on top is another vsync ahead, can be divisions of (0.5f)
+ * @param[in] amount The prediction amount in milliseconds
*/
- void SetPanGesturePredictionAmount(float amount);
+ void SetPanGesturePredictionAmount(unsigned int amount);
private:
{
mEnvironmentOptions.SetPanGesturePredictionMode(predictionMode);
}
- float predictionAmount = -1.0f;
- if( GetFloatEnvironmentVariable(DALI_ENV_PAN_PREDICTION_AMOUNT, predictionAmount) )
+ int predictionAmount = -1;
+ if( GetIntegerEnvironmentVariable(DALI_ENV_PAN_PREDICTION_AMOUNT, predictionAmount) )
{
+ if( predictionAmount < 0 )
+ {
+ // do not support times in the past
+ predictionAmount = 0;
+ }
mEnvironmentOptions.SetPanGesturePredictionAmount(predictionAmount);
}