815 aType=TPointerEvent::EMove; |
816 aType=TPointerEvent::EMove; |
816 break; |
817 break; |
817 case TRawEvent::EPointerSwitchOn: |
818 case TRawEvent::EPointerSwitchOn: |
818 aType=TPointerEvent::ESwitchOn; |
819 aType=TPointerEvent::ESwitchOn; |
819 break; |
820 break; |
|
821 case TRawEvent::EGestureTap: |
|
822 case TRawEvent::EGesturePress: |
|
823 case TRawEvent::EGestureFlickup: |
|
824 case TRawEvent::EGestureFlickDown: |
|
825 case TRawEvent::EGestureFlickLeft: |
|
826 case TRawEvent::EGestureFlickRight: |
|
827 case TRawEvent::EGestureFlick: |
|
828 case TRawEvent::EGestureCustom1: |
|
829 case TRawEvent::EGestureCustom2: |
|
830 case TRawEvent::EGestureCustom3: |
|
831 case TRawEvent::EGestureCustom4: |
|
832 case TRawEvent::EGestureCustom5: |
|
833 case TRawEvent::EGestureCustom6: |
|
834 case TRawEvent::EGestureCustom7: |
|
835 case TRawEvent::EGestureCustom8: |
|
836 case TRawEvent::EGestureCustom9: |
|
837 aType = static_cast<TPointerEvent::TType>(aRawEvent.Type()); |
|
838 break; |
820 default: |
839 default: |
821 aHandled=EFalse; |
840 aHandled=EFalse; |
822 } |
841 } |
823 } |
842 } |
824 |
843 |
830 TBool handled=ETrue; |
849 TBool handled=ETrue; |
831 TPointerEvent::TType type; |
850 TPointerEvent::TType type; |
832 GetPointerEvent(type, aRawEvent, handled); |
851 GetPointerEvent(type, aRawEvent, handled); |
833 if (handled) |
852 if (handled) |
834 { |
853 { |
835 TPoint xy(aRawEvent.Pos()); |
854 TRawEvent_Local* pEventLocal = (TRawEvent_Local*)&aRawEvent ; |
836 WsPointer::ProcessEvent(type, xy, iKeyTranslator->GetModifierState(), aGroupWin, ETrue); |
855 TPoint xy(pEventLocal->GetPos()); |
|
856 WsPointer::ProcessEvent(type, xy, iKeyTranslator->GetModifierState(), aGroupWin, ETrue, &aRawEvent); |
837 } |
857 } |
838 return handled; |
858 return handled; |
839 } |
859 } |
840 |
860 |
841 LOCAL_D void SendEventToKeyClick(const TRawEvent& aRawEvent) |
861 LOCAL_D void SendEventToKeyClick(const TRawEvent& aRawEvent) |
1008 // fall through |
1028 // fall through |
1009 case TRawEvent::EButton1Up: |
1029 case TRawEvent::EButton1Up: |
1010 case TRawEvent::EButton2Up: |
1030 case TRawEvent::EButton2Up: |
1011 case TRawEvent::EButton3Up: |
1031 case TRawEvent::EButton3Up: |
1012 case TRawEvent::EPointerMove: |
1032 case TRawEvent::EPointerMove: |
|
1033 case TRawEvent::EGestureTap: |
|
1034 case TRawEvent::EGesturePress: |
|
1035 case TRawEvent::EGestureFlickup: |
|
1036 case TRawEvent::EGestureFlickDown: |
|
1037 case TRawEvent::EGestureFlickLeft: |
|
1038 case TRawEvent::EGestureFlickRight: |
|
1039 case TRawEvent::EGestureFlick: |
|
1040 case TRawEvent::EGestureCustom1: |
|
1041 case TRawEvent::EGestureCustom2: |
|
1042 case TRawEvent::EGestureCustom3: |
|
1043 case TRawEvent::EGestureCustom4: |
|
1044 case TRawEvent::EGestureCustom5: |
|
1045 case TRawEvent::EGestureCustom6: |
|
1046 case TRawEvent::EGestureCustom7: |
|
1047 case TRawEvent::EGestureCustom8: |
|
1048 case TRawEvent::EGestureCustom9: |
1013 #if defined(_DEBUG) |
1049 #if defined(_DEBUG) |
1014 WS_ASSERT_DEBUG(MousePress(aRawEvent,NULL), EWsPanicEventType); |
1050 WS_ASSERT_DEBUG(MousePress(aRawEvent,NULL), EWsPanicEventType); |
1015 #else |
1051 #else |
1016 MousePress(aRawEvent,NULL); |
1052 MousePress(aRawEvent,NULL); |
1017 #endif |
1053 #endif |