--- a/htiui/HtiServicePlugins/HtiKeyEventServicePlugin/inc/PointerEventHandler.h Tue Feb 02 00:17:27 2010 +0200
+++ b/htiui/HtiServicePlugins/HtiKeyEventServicePlugin/inc/PointerEventHandler.h Fri Feb 19 22:51:38 2010 +0200
@@ -15,12 +15,11 @@
*
*/
-
#ifndef CPOINTEREVENTHANDLER_H
#define CPOINTEREVENTHANDLER_H
// INCLUDES
-#include <HTIServicePluginInterface.h>
+#include <HtiServicePluginInterface.h>
#include <w32std.h>
// CONSTANTS
@@ -35,6 +34,7 @@
// CLASS DECLARATION
+
/**
* Functional implentation of pointer event service.
*/
@@ -57,6 +57,8 @@
ETapAndDragMultipoint = 0x12,
EPressPointerDown = 0x13,
ELiftPointerUp = 0x14,
+ EAdvancedTapScreen = 0x15, //for advanced
+ EPinchZoom = 0x16, //for advanced
EResultOk = 0xFF // only for response message
};
@@ -67,6 +69,16 @@
EPointerMoving
};
+ struct TAdvancedPointer
+ {
+ TUint8 PointerNum;
+ TInt X;
+ TInt Y;
+ TInt Z;
+ };
+
+
+
/**
* Two-phased constructor.
*/
@@ -117,6 +129,8 @@
void HandleTapAndDragL( const TDesC8& aData );
void HandleTapAndDragMultipointL( const TDesC8& aData );
void HandlePointerDownOrUpL( const TDesC8& aData );
+ void HandleAdvancedTapScreenL( const TDesC8& aData ); //for advanced
+ void HandlePinchZoomL( const TDesC8& aData ); //for advanced
void SendOkMsgL();
void SendErrorMessageL( TInt aError, const TDesC8& aDescription );
@@ -127,6 +141,10 @@
void PointerUp();
void PointerMove();
void SimulatePointerEvent( TRawEvent::TType aType );
+ TBool IsMultitouch();
+ void AdvanceAddMiddlePointL(TInt aPointNumber,TInt aX1,TInt aY1, TInt aZ1,TInt aX2,TInt aY2, TInt aZ2 , TInt aStepCount );
+ void AdvancedAddDelayArray(TTimeIntervalMicroSeconds32 aDelay , TInt aStepCount );
+ TBool AdvancedStartDelay();
private: // data
@@ -144,6 +162,10 @@
TTimeIntervalMicroSeconds32 iActionDelay;
TPointerState iState;
RArray<TInt>* iCoords;
- };
+ RPointerArray<TAdvancedPointer> iAdvancedPointers;
+
+ RPointerArray<TAdvancedPointer> iAdvPointerMoveArray;
+ RPointerArray<TTimeIntervalMicroSeconds32> iDelayArray;
+ };
#endif // CKEYEVENTHANDLER_H