textinput/peninputarc/src/peninputanim/peninputanim.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 46 bd83ceabce89
--- a/textinput/peninputarc/src/peninputanim/peninputanim.cpp	Wed Sep 15 12:34:44 2010 +0300
+++ b/textinput/peninputarc/src/peninputanim/peninputanim.cpp	Wed Oct 13 14:55:58 2010 +0300
@@ -142,6 +142,13 @@
     
     iFunctions->RegisterForNotifications(EDirectScreenAccess);
     iPointerEventSuppressor = CPenPointerEventSuppressor::NewL();
+    
+    //Setup pointer event suppressor with the parameters provided by UE.
+    //hard code is used here to minimize code changes
+    iPointerEventSuppressor->SetMaxTapMove( TSize( 10, 10 ) );
+    iPointerEventSuppressor->SetMaxTapDuration( 400000 );
+    iPointerEventSuppressor->SetMaxDownUpMove( TSize( 40 , 40 ) );
+    iPointerEventSuppressor->SetMaxDownUpDuration( 400000 );
     }
 
 
@@ -300,7 +307,7 @@
         default:
             {
             return EFalse;
-            }
+            }            
         }
     }
 
@@ -704,18 +711,6 @@
             SetDiscreeptPop(area); 
             }
             break;
-        case EPeninputOpUpdatePointerSuppressor:
-            {
-            TPointerEventSuppressorParameters parameters;
-            TPckg<TPointerEventSuppressorParameters> msgData( parameters );
-            msg->ReadL( KMsgSlot1, msgData );
-            
-            iPointerEventSuppressor->SetMaxTapMove( parameters.iMoveEventMaxMovement );
-            iPointerEventSuppressor->SetMaxTapDuration( parameters.iMoveEventTimeout );
-            iPointerEventSuppressor->SetMaxDownUpMove( parameters.iUpEventMaxMovement );
-            iPointerEventSuppressor->SetMaxDownUpDuration( parameters.iUpEventTimeout );
-            }
-            break;
         default:
             // unsupported opcode, panic the client
             {                
@@ -1072,7 +1067,7 @@
 // 
 void CPeninputAnim::StartTimer()
     {
-    if ( iIsActive && !iFlushTimer->IsActive())
+    if ( iIsActive && !iFlushTimer->IsActive() )
         {
         iFlushTimer->Start(
             KFlushTimerPeriod,