equal
deleted
inserted
replaced
140 iFunctions->SetInterval(0); |
140 iFunctions->SetInterval(0); |
141 iFlushTimer = CPeriodic::NewL(CActive::EPriorityStandard); |
141 iFlushTimer = CPeriodic::NewL(CActive::EPriorityStandard); |
142 |
142 |
143 iFunctions->RegisterForNotifications(EDirectScreenAccess); |
143 iFunctions->RegisterForNotifications(EDirectScreenAccess); |
144 iPointerEventSuppressor = CPenPointerEventSuppressor::NewL(); |
144 iPointerEventSuppressor = CPenPointerEventSuppressor::NewL(); |
|
145 |
|
146 //Setup pointer event suppressor with the parameters provided by UE. |
|
147 //hard code is used here to minimize code changes |
|
148 iPointerEventSuppressor->SetMaxTapMove( TSize( 10, 10 ) ); |
|
149 iPointerEventSuppressor->SetMaxTapDuration( 400000 ); |
|
150 iPointerEventSuppressor->SetMaxDownUpMove( TSize( 40 , 40 ) ); |
|
151 iPointerEventSuppressor->SetMaxDownUpDuration( 400000 ); |
145 } |
152 } |
146 |
153 |
147 |
154 |
148 // --------------------------------------------------------------------------- |
155 // --------------------------------------------------------------------------- |
149 // CPeninputAnim::Animate |
156 // CPeninputAnim::Animate |
298 return OnRawPointerMove( rawEvent ); |
305 return OnRawPointerMove( rawEvent ); |
299 } |
306 } |
300 default: |
307 default: |
301 { |
308 { |
302 return EFalse; |
309 return EFalse; |
303 } |
310 } |
304 } |
311 } |
305 } |
312 } |
306 |
313 |
307 // --------------------------------------------------------------------------- |
314 // --------------------------------------------------------------------------- |
308 // CPeninputAnim::Command |
315 // CPeninputAnim::Command |
702 TPckg<TRect> msgData(area); |
709 TPckg<TRect> msgData(area); |
703 msg->ReadL(KMsgSlot1,msgData); |
710 msg->ReadL(KMsgSlot1,msgData); |
704 SetDiscreeptPop(area); |
711 SetDiscreeptPop(area); |
705 } |
712 } |
706 break; |
713 break; |
707 case EPeninputOpUpdatePointerSuppressor: |
|
708 { |
|
709 TPointerEventSuppressorParameters parameters; |
|
710 TPckg<TPointerEventSuppressorParameters> msgData( parameters ); |
|
711 msg->ReadL( KMsgSlot1, msgData ); |
|
712 |
|
713 iPointerEventSuppressor->SetMaxTapMove( parameters.iMoveEventMaxMovement ); |
|
714 iPointerEventSuppressor->SetMaxTapDuration( parameters.iMoveEventTimeout ); |
|
715 iPointerEventSuppressor->SetMaxDownUpMove( parameters.iUpEventMaxMovement ); |
|
716 iPointerEventSuppressor->SetMaxDownUpDuration( parameters.iUpEventTimeout ); |
|
717 } |
|
718 break; |
|
719 default: |
714 default: |
720 // unsupported opcode, panic the client |
715 // unsupported opcode, panic the client |
721 { |
716 { |
722 iFunctions->Panic(); |
717 iFunctions->Panic(); |
723 retValue = KErrNotSupported; |
718 retValue = KErrNotSupported; |
1070 // Initial and start timer |
1065 // Initial and start timer |
1071 // --------------------------------------------------------------------------- |
1066 // --------------------------------------------------------------------------- |
1072 // |
1067 // |
1073 void CPeninputAnim::StartTimer() |
1068 void CPeninputAnim::StartTimer() |
1074 { |
1069 { |
1075 if ( iIsActive && !iFlushTimer->IsActive()) |
1070 if ( iIsActive && !iFlushTimer->IsActive() ) |
1076 { |
1071 { |
1077 iFlushTimer->Start( |
1072 iFlushTimer->Start( |
1078 KFlushTimerPeriod, |
1073 KFlushTimerPeriod, |
1079 KFlushTimerPeriod, |
1074 KFlushTimerPeriod, |
1080 TCallBack(FlushTimerCallBack, this)); |
1075 TCallBack(FlushTimerCallBack, this)); |