mulwidgets/mulsliderwidget/src/mulslidercontrol.cpp
branchRCL_3
changeset 23 514d98f21c43
parent 21 125793e17004
equal deleted inserted replaced
21:125793e17004 23:514d98f21c43
   241     }
   241     }
   242 //----------------------------------------------------------------------
   242 //----------------------------------------------------------------------
   243 //TactileEffectOnDrag
   243 //TactileEffectOnDrag
   244 //
   244 //
   245 //----------------------------------------------------------------------
   245 //----------------------------------------------------------------------
   246 void MulSliderControl::TactileEffectOnDrag(TAlfEvent& aEvent)
   246 void MulSliderControl::TactileEffectOnDrag(TAlfEvent& aEvent, int aIntensity)
   247 {            
   247 {            
   248  if (mTactilefdbInstance)
   248  if (mTactilefdbInstance)
   249   {
   249   {
   250     CCoeControl* ccoecntrl = static_cast<CCoeControl*>(Display()->ObjectProvider());
   250     CCoeControl* ccoecntrl = static_cast<CCoeControl*>(Display()->ObjectProvider());
   251     TInt intensity = 50;
   251     TInt intensity = aIntensity;
   252     TTimeIntervalMicroSeconds32 timespan = 400000;
   252     TTimeIntervalMicroSeconds32 timespan = 400000;
   253     mTactilefdbInstance->StartFeedback(ccoecntrl,ETouchContinuousSlider,&aEvent.PointerEvent(),intensity,timespan);
   253     mTactilefdbInstance->StartFeedback(ccoecntrl,ETouchDynamicSlider,&aEvent.PointerEvent(),intensity,timespan);
   254     mDragTactileFeedbackStarted = true;
   254     mDragTactileFeedbackStarted = true;
   255    }
   255    }
   256 }        
   256 }        
   257 //-------------------------------------------------------------------------------
   257 //-------------------------------------------------------------------------------
   258 //
   258 //