blob: 3706bf3d219e3e18dcc36cf8b68dbe867a3c2bd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*
* Mouse window routines header.
*
* Copyright (c) 2002 by Jose Angel Sanchez Caso (JASC)
* Based in code by Salvador E. Tropea (SET)
* Covered by the GPL license.
*/
#if defined(TVOS_Win32) && !defined(TV_Disable_WinGr_Driver) \
&& !defined(WINGRMOUSE_HEADER_INCLUDED)
#define WINGRMOUSE_HEADER_INCLUDED
struct THWMouseWinGr: virtual public TDisplayWinGr // Access to display attributes
, THWMouse
{ static bool pressed;
static HCURSOR lastCursor;
THWMouseWinGr();
static void Init();
static void GetEvent( MouseEventType &me );
static int testEvents( UINT message
, WPARAM wParam
, LPARAM lParam );
static void init();
protected:
virtual ~THWMouseWinGr();
private:
// Support variables
/* static unsigned mouseX;
static unsigned mouseY; */
// Support methods
static int setMouse( LPARAM lParam
, int ev );
};
#endif // WINDOWSMOUSE_HEADER_INCLUDED
|