omap3530/beagle_drivers/serialmouse/serialmouse.h
changeset 21 524118fd998f
parent 0 6663340f3fc9
equal deleted inserted replaced
20:3999188eafd0 21:524118fd998f
    37 	
    37 	
    38 	TInt Scale(const TInt& aVal);
    38 	TInt Scale(const TInt& aVal);
    39 	void Clip(TInt& aX, TInt& aY);
    39 	void Clip(TInt& aX, TInt& aY);
    40 	void GetScreenInfo();
    40 	void GetScreenInfo();
    41 
    41 
       
    42 	// AndyS support for sending keyboard events
       
    43 	void AddKey( TUint aKey );
       
    44 	
    42 	enum TState	{ ENormal, EEscapingStart, EEscapingType1, EEscapingType2 };
    45 	enum TState	{ ENormal, EEscapingStart, EEscapingType1, EEscapingType2 };
    43 private:
    46 private:
    44 	TDfc    iKeyDfc;
    47 	TDfc    iKeyDfc;
    45 	TUint   iKey;
    48 	TUint   iKey;
    46 	TInt    iDebugPort;
    49 	TInt    iDebugPort;
    59 	TInt iY;
    62 	TInt iY;
    60 	TInt iLastX;
    63 	TInt iLastX;
    61 	TInt iLastY;
    64 	TInt iLastY;
    62 	TBool iLastLeftButtonDown;
    65 	TBool iLastLeftButtonDown;
    63 	TBool iLastRightButtonDown;
    66 	TBool iLastRightButtonDown;
    64 	
    67 
    65 #ifdef _FRAME_BUFFER_CURSOR_
    68 #ifdef _FRAME_BUFFER_CURSOR_
    66 	void DrawCursor(TInt x, TInt y);
    69 	void DrawCursor(TInt x, TInt y);
    67 	void Blit(TInt x, TInt y, TUint16 aColour);
    70 	void Blit(TInt x, TInt y, TUint16 aColour);
    68 	TUint8* iVideoAddress;
    71 	TUint8* iVideoAddress;
    69 	TUint16* iCursorBuffer;
    72 	TUint16* iCursorBuffer;