Mercurial > mm7
view Mouse.h @ 2074:121316212c1c
more text fix
author | Gloval |
---|---|
date | Wed, 04 Dec 2013 09:13:48 +0400 |
parents | 633f81bb3ae7 |
children | 3f375342de12 |
line wrap: on
line source
#pragma once #include "OSWindow.h" #include "VectorTypes.h" /* 107 */ #pragma pack(push, 1) class ThreadWard { public: //----- (00438B0B) -------------------------------------------------------- inline ThreadWard() { InitializeCriticalSection(&csAsyncMouse); InitializeCriticalSection(&cs2); InitializeCriticalSection(&cs3); InitializeCriticalSection(&csAsyncKeyboard); } //----- (00438B54) -------------------------------------------------------- virtual ~ThreadWard() { ThreadWard *v1; // esi@1 v1 = this; //this->vdestructor_ptr = &ThreadWard_destructors; DeleteCriticalSection(&this->csAsyncKeyboard); DeleteCriticalSection(&v1->cs3); DeleteCriticalSection(&v1->cs2); DeleteCriticalSection(&v1->csAsyncMouse); } void ( ***vdestructor_ptr)(ThreadWard *, bool); _RTL_CRITICAL_SECTION csAsyncMouse; _RTL_CRITICAL_SECTION cs2; _RTL_CRITICAL_SECTION cs3; _RTL_CRITICAL_SECTION csAsyncKeyboard; }; #pragma pack(pop) /* 106 */ #pragma pack(push, 1) class Mouse { public: //----- (00467E4E) -------------------------------------------------------- inline Mouse(): window(nullptr) { uCursorTextureID = 0; uCursorTextureID_2 = 0; pCursorBitmap_sysmem = 0; field_34 = 0; pCursorBitmap2_sysmem = 0; pCursorBitmap3_sysmembits_16bit = 0; ptr_90 = 0; pWard = pWard; } void GetClickPos(unsigned int *pX, unsigned int *pY); void RemoveHoldingItem(); void SetCursorBitmapFromItemID(unsigned int uItemID); void SetCurrentCursorBitmap(); void SetCursorBitmap(const char *pName); LONG _469AE4(); void ClearCursor(); void AllocCursorSystemMem(); void *DoAllocCursorMem(); POINT *GetCursorPos(POINT *p); void Initialize(OSWindow *window); void SetActive(bool active); void Deactivate(); void DrawCursor(); void _469E1C(); void _469E24(); void DrawCursorToTarget(); void _469EA4(); void Activate(int bActive); void SetMouseClick(int x, int y); unsigned int uPointingObjectID; unsigned int bActive; int field_8; int field_C; unsigned int bInitialized; unsigned int bRedraw; int field_18; int field_1C; int field_20; unsigned int uCursorTextureID; unsigned int uCursorTextureID_2; //HWND hWnd; OSWindow *window; unsigned __int16 *pCursorBitmap_sysmem; int field_34; unsigned __int8 *pCursorBitmap2_sysmem; unsigned __int16 *pCursorBitmap3_sysmembits_16bit; int field_40; int field_44; int field_48; int field_4C; int field_50; int field_54; int uCursorBitmapPitch; int field_5C[13]; void *ptr_90; int field_94; int field_98; int field_9C; int field_A0; int field_A4; int field_A8; int field_AC; int field_B0; int field_B4; int field_B8; int field_BC; int field_C0; Vec2_int_ pCursorBitmapPos; int uCursorBitmapWidth; int uCursorBitmapHeight; int field_D4; int field_D8; int field_DC; int field_E0; Vec4_int_ pCursorBitmapRect; char field_F4; char pCurrentCursorName[11]; int field_100; int field_104; unsigned int uMouseClickX; unsigned int uMouseClickY; void/*ThreadWard*/ *pWard; }; #pragma pack(pop) extern Mouse *pMouse;