uifw/AvKon/src/aknlongtapdetector.cpp
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
    28 #include "AknPanic.h"
    28 #include "AknPanic.h"
    29 #include "aknlongtapdetector.h"
    29 #include "aknlongtapdetector.h"
    30 
    30 
    31 // CONSTANTS
    31 // CONSTANTS
    32 const TInt KTimeDelayBeforeAnimation = 150000;  // 0,15 seconds
    32 const TInt KTimeDelayBeforeAnimation = 150000;  // 0,15 seconds
    33 const TInt KLongTapDelay = 800000;              // 0,8 seconds
    33 const TInt KLongTapDelay = 500000;              // 0,6 seconds
    34 
    34 
    35 // ======== MEMBER FUNCTIONS ========
    35 // ======== MEMBER FUNCTIONS ========
    36 
    36 
    37 
    37 
    38 // ---------------------------------------------------------------------------
    38 // ---------------------------------------------------------------------------
   252     
   252     
   253     if ( iState == EShowingAnimation )
   253     if ( iState == EShowingAnimation )
   254         {
   254         {
   255         StopAnimation();
   255         StopAnimation();
   256         }
   256         }
       
   257     iState = EWaiting;
   257     }
   258     }
   258 
   259 
   259 
   260 
   260 // -----------------------------------------------------------------------------
   261 // -----------------------------------------------------------------------------
   261 // CAknLongTapDetector::StartAnimationL
   262 // CAknLongTapDetector::StartAnimationL
   319     if ( aEvent.Type() == EEventKey || aEvent.Type() == EEventKeyUp 
   320     if ( aEvent.Type() == EEventKey || aEvent.Type() == EEventKeyUp 
   320             || aEvent.Type() == EEventKeyDown || (aEvent.Type() == EEventPointer
   321             || aEvent.Type() == EEventKeyDown || (aEvent.Type() == EEventPointer
   321             && aEvent.Pointer()->iType == TPointerEvent::EButton1Up ) )
   322             && aEvent.Pointer()->iType == TPointerEvent::EButton1Up ) )
   322 		{
   323 		{
   323         Cancel();
   324         Cancel();
   324         iState = EWaiting;		
       
   325 	    }
   325 	    }
   326     }
   326     }
   327 
   327 
   328 //  End of File
   328 //  End of File