/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Internal
{
-GestureEventProcessor::GestureEventProcessor(Stage& stage, Integration::GestureManager& gestureManager, Integration::RenderController& renderController)
-: mStage(stage),
- mGestureManager(gestureManager),
- mLongPressGestureProcessor(stage, gestureManager),
- mPanGestureProcessor(stage, gestureManager),
- mPinchGestureProcessor(stage, gestureManager),
- mTapGestureProcessor(stage, gestureManager),
- mRenderController(renderController),
+GestureEventProcessor::GestureEventProcessor( Stage& stage, SceneGraph::UpdateManager& updateManager, Integration::GestureManager& gestureManager, Integration::RenderController& renderController )
+: mStage( stage ),
+ mGestureManager( gestureManager ),
+ mLongPressGestureProcessor( stage, gestureManager ),
+ mPanGestureProcessor( stage, gestureManager, updateManager ),
+ mPinchGestureProcessor( stage, gestureManager ),
+ mTapGestureProcessor( stage, gestureManager ),
+ mRenderController( renderController ),
mUpdateRequired( false )
{
}
SetUpdateRequired();
// We may not be updating so we need to ask the render controller for an update.
- mRenderController.RequestUpdate();
+ mRenderController.RequestUpdate( false );
}
switch ( gesture.type )
mPanGestureProcessor.SetPredictionAmount(amount);
}
+void GestureEventProcessor::SetPanGestureMaximumPredictionAmount( unsigned int amount )
+{
+ mPanGestureProcessor.SetMaximumPredictionAmount(amount);
+}
+
+void GestureEventProcessor::SetPanGestureMinimumPredictionAmount( unsigned int amount )
+{
+ mPanGestureProcessor.SetMinimumPredictionAmount(amount);
+}
+
+void GestureEventProcessor::SetPanGesturePredictionAmountAdjustment( unsigned int amount )
+{
+ mPanGestureProcessor.SetPredictionAmountAdjustment(amount);
+}
+
void GestureEventProcessor::SetPanGestureSmoothingMode(int mode)
{
mPanGestureProcessor.SetSmoothingMode(mode);