Update contrib.
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // wins\specific\multitouch.h
23 #include "multitouchwindowsheader.h"
26 #define WM_INPUT 0x00ff
30 * The main class for Multitouch
35 DMultiTouch(TInt aProximityStep, TInt aPressureStep);
36 void OnWmInput(HWND aHWnd,TUint aMessage,TUint aWParam,TUint aLParam,HWND aParentHwnd);
37 void ShowPrimaryCursor(HWND aHWnd);
39 static void ShowCursors();
40 static void HideCursors();
45 static int iNumberOfMice;
46 static bool iMultiTouchSupported;
47 static bool iMultiTouchCreated;
48 static bool iMultiTouchTempEnabled;
55 extern DMultiTouch* TheMultiTouch;
56 extern void MultiTouchWndPointer(TUint message,TInt aXpos,TInt aYpos, TInt aPointerId, TInt aZ);
59 * The class of the Cursor Window
65 HWND Create(HMODULE hm, HWND hwndParent, int number);
66 BOOL SetCursor(HCURSOR hc);
67 void GetPosition(POINT& pt);
68 void SetPosition(POINT& pt);
79 * The class encapsulating each mouse device
85 static TInt Add(RAWINPUTDEVICELIST& aDev);
86 static DMultiMouse* Find(HANDLE aHandle);
87 void HandleRawMouseEvent(RAWMOUSE& aEvent, HWND aWnd);
88 void CreateCursor(LPVOID aArg, HWND aWnd);
93 void CorrectSystemMouse();
94 void ShowMousePos(HWND aHWnd);
105 CursorWindow iCursorWnd;
107 static DMultiMouse iMice[KMaxMice];
109 static DMultiMouse* iPrimary;