0
|
1 #pragma once
|
1802
|
2 #include "OSWindow.h"
|
0
|
3
|
|
4 #include "VectorTypes.h"
|
|
5
|
|
6
|
|
7
|
|
8 /* 107 */
|
|
9 #pragma pack(push, 1)
|
1103
|
10 class ThreadWard
|
0
|
11 {
|
1103
|
12 public:
|
0
|
13 //----- (00438B0B) --------------------------------------------------------
|
|
14 inline ThreadWard()
|
|
15 {
|
|
16 InitializeCriticalSection(&csAsyncMouse);
|
|
17 InitializeCriticalSection(&cs2);
|
|
18 InitializeCriticalSection(&cs3);
|
|
19 InitializeCriticalSection(&csAsyncKeyboard);
|
|
20 }
|
|
21
|
|
22 //----- (00438B54) --------------------------------------------------------
|
|
23 virtual ~ThreadWard()
|
|
24 {
|
|
25 ThreadWard *v1; // esi@1
|
|
26
|
|
27 v1 = this;
|
|
28 //this->vdestructor_ptr = &ThreadWard_destructors;
|
|
29 DeleteCriticalSection(&this->csAsyncKeyboard);
|
|
30 DeleteCriticalSection(&v1->cs3);
|
|
31 DeleteCriticalSection(&v1->cs2);
|
|
32 DeleteCriticalSection(&v1->csAsyncMouse);
|
|
33 }
|
|
34
|
1458
|
35 void ( ***vdestructor_ptr)(ThreadWard *, bool);
|
0
|
36 _RTL_CRITICAL_SECTION csAsyncMouse;
|
|
37 _RTL_CRITICAL_SECTION cs2;
|
|
38 _RTL_CRITICAL_SECTION cs3;
|
|
39 _RTL_CRITICAL_SECTION csAsyncKeyboard;
|
|
40 };
|
|
41 #pragma pack(pop)
|
|
42
|
|
43 /* 106 */
|
|
44 #pragma pack(push, 1)
|
1103
|
45 class Mouse
|
0
|
46 {
|
1103
|
47 public:
|
0
|
48 //----- (00467E4E) --------------------------------------------------------
|
1802
|
49 inline Mouse():
|
|
50 window(nullptr)
|
0
|
51 {
|
|
52 uCursorTextureID = 0;
|
|
53 uCursorTextureID_2 = 0;
|
|
54 pCursorBitmap_sysmem = 0;
|
|
55 field_34 = 0;
|
|
56 pCursorBitmap2_sysmem = 0;
|
|
57 pCursorBitmap3_sysmembits_16bit = 0;
|
|
58 ptr_90 = 0;
|
|
59 pWard = pWard;
|
|
60 }
|
|
61
|
|
62 void GetClickPos(unsigned int *pX, unsigned int *pY);
|
|
63 void RemoveHoldingItem();
|
|
64 void SetCursorBitmapFromItemID(unsigned int uItemID);
|
|
65 void SetCurrentCursorBitmap();
|
|
66 void SetCursorBitmap(const char *pName);
|
|
67 LONG _469AE4();
|
|
68 void ClearCursor();
|
|
69 void AllocCursorSystemMem();
|
|
70 void *DoAllocCursorMem();
|
|
71 POINT *GetCursorPos(POINT *p);
|
1802
|
72 void Initialize(OSWindow *window);
|
762
|
73 void SetActive(bool active);
|
0
|
74 void Deactivate();
|
|
75 void DrawCursor();
|
|
76 void _469E1C();
|
|
77 void _469E24();
|
|
78 void DrawCursorToTarget();
|
|
79 void _469EA4();
|
|
80 void Activate(int bActive);
|
|
81 void SetMouseClick(int x, int y);
|
|
82
|
|
83
|
|
84 unsigned int uPointingObjectID;
|
|
85 unsigned int bActive;
|
|
86 int field_8;
|
|
87 int field_C;
|
|
88 unsigned int bInitialized;
|
791
|
89 unsigned int bRedraw;
|
0
|
90 int field_18;
|
|
91 int field_1C;
|
|
92 int field_20;
|
|
93 unsigned int uCursorTextureID;
|
|
94 unsigned int uCursorTextureID_2;
|
1802
|
95 //HWND hWnd;
|
|
96 OSWindow *window;
|
0
|
97 unsigned __int16 *pCursorBitmap_sysmem;
|
|
98 int field_34;
|
|
99 unsigned __int8 *pCursorBitmap2_sysmem;
|
|
100 unsigned __int16 *pCursorBitmap3_sysmembits_16bit;
|
|
101 int field_40;
|
|
102 int field_44;
|
|
103 int field_48;
|
|
104 int field_4C;
|
|
105 int field_50;
|
|
106 int field_54;
|
|
107 int uCursorBitmapPitch;
|
|
108 int field_5C[13];
|
|
109 void *ptr_90;
|
|
110 int field_94;
|
|
111 int field_98;
|
|
112 int field_9C;
|
|
113 int field_A0;
|
|
114 int field_A4;
|
|
115 int field_A8;
|
|
116 int field_AC;
|
|
117 int field_B0;
|
|
118 int field_B4;
|
|
119 int field_B8;
|
|
120 int field_BC;
|
|
121 int field_C0;
|
|
122 Vec2_int_ pCursorBitmapPos;
|
|
123 int uCursorBitmapWidth;
|
|
124 int uCursorBitmapHeight;
|
|
125 int field_D4;
|
|
126 int field_D8;
|
|
127 int field_DC;
|
|
128 int field_E0;
|
|
129 Vec4_int_ pCursorBitmapRect;
|
|
130 char field_F4;
|
|
131 char pCurrentCursorName[11];
|
|
132 int field_100;
|
|
133 int field_104;
|
|
134 unsigned int uMouseClickX;
|
|
135 unsigned int uMouseClickY;
|
1397
|
136 void/*ThreadWard*/ *pWard;
|
0
|
137 };
|
|
138 #pragma pack(pop)
|
|
139
|
|
140
|
|
141
|
|
142
|
|
143
|
1038
|
144 extern Mouse *pMouse; |