968 void TWindowServerEvent::ProcessRawEvent(const TRawEvent& aRawEvent) |
968 void TWindowServerEvent::ProcessRawEvent(const TRawEvent& aRawEvent) |
969 // |
969 // |
970 // Event has completed. |
970 // Event has completed. |
971 // |
971 // |
972 { |
972 { |
|
973 TRawEvent::TType eventType = aRawEvent.Type(); |
|
974 TBool isPointerEvent = TWsPointer::IsPointerEventType(eventType); |
|
975 |
973 TBool pauseProcessEvents = EFalse; |
976 TBool pauseProcessEvents = EFalse; |
974 //Check if the pause in processing all raw pointer and key events was set. |
977 //Check if the pause in processing all raw pointer and key events was set. |
975 if(iPauseInterval.Int64() > 0) |
978 if(iPauseInterval.Int64() > 0) |
976 { |
979 { |
977 TTime current; |
980 TTime current; |
984 } |
987 } |
985 else |
988 else |
986 { |
989 { |
987 // Set flag ignore of processing all raw events (except processing by anim's dll plug-ins) |
990 // Set flag ignore of processing all raw events (except processing by anim's dll plug-ins) |
988 // All events will be ignored except for anim's dll plug-ins. |
991 // All events will be ignored except for anim's dll plug-ins. |
989 pauseProcessEvents = ETrue; |
992 pauseProcessEvents = isPointerEvent; |
990 } |
993 } |
991 } |
994 } |
992 |
995 |
993 #ifdef LOG_WSERV_EVENTS |
996 #ifdef LOG_WSERV_EVENTS |
994 if(pauseProcessEvents) |
997 if(pauseProcessEvents) |
995 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent Processing of Raw Event - DISABLED"); |
998 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent Processing of Raw Event - DISABLED"); |
996 else |
999 else |
997 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent Processing of Raw Event - ENABLED"); |
1000 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent Processing of Raw Event - ENABLED"); |
998 #endif |
1001 #endif |
999 |
1002 |
1000 TRawEvent::TType eventType = aRawEvent.Type(); |
|
1001 TBool isPointerEvent = TWsPointer::IsPointerEventType(eventType); |
|
1002 if (isPointerEvent) |
1003 if (isPointerEvent) |
1003 { |
1004 { |
1004 #ifdef LOG_WSERV_EVENTS |
1005 #ifdef LOG_WSERV_EVENTS |
1005 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent EventType = 0x0%X PointerNumber = %d PrimaryPointerNumber = %d XY(%d,%d)", |
1006 RDebug::Printf("{EVNT}TWindowServerEvent::ProcessRawEvent EventType = 0x0%X PointerNumber = %d PrimaryPointerNumber = %d XY(%d,%d)", |
1006 aRawEvent.Type(),aRawEvent.PointerNumber(),TWsPointer::PrimaryPointer(),aRawEvent.Pos().iX,aRawEvent.Pos().iY); |
1007 aRawEvent.Type(),aRawEvent.PointerNumber(),TWsPointer::PrimaryPointer(),aRawEvent.Pos().iX,aRawEvent.Pos().iY); |