|
|
@ -57,6 +57,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com |
|
|
|
#include "../plNetClient/plNetClientMgr.h" |
|
|
|
#include "../plNetClient/plNetClientMgr.h" |
|
|
|
#include "../plNetClient/plNetLinkingMgr.h" |
|
|
|
#include "../plNetClient/plNetLinkingMgr.h" |
|
|
|
#include "../plInputCore/plInputManager.h" |
|
|
|
#include "../plInputCore/plInputManager.h" |
|
|
|
|
|
|
|
#include "../plInputCore/plInputDevice.h" |
|
|
|
#include "../plUnifiedTime/plUnifiedTime.h" |
|
|
|
#include "../plUnifiedTime/plUnifiedTime.h" |
|
|
|
#include "plPipeline.h" |
|
|
|
#include "plPipeline.h" |
|
|
|
#include "../plResMgr/plResManager.h" |
|
|
|
#include "../plResMgr/plResManager.h" |
|
|
@ -497,6 +498,31 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case WM_SETCURSOR: |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
static bool winCursor = true; |
|
|
|
|
|
|
|
if (LOWORD(lParam) == HTCLIENT) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (winCursor) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
winCursor = false; |
|
|
|
|
|
|
|
ShowCursor(FALSE); |
|
|
|
|
|
|
|
plMouseDevice::ShowCursor(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!winCursor) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
winCursor = true; |
|
|
|
|
|
|
|
ShowCursor(TRUE); |
|
|
|
|
|
|
|
plMouseDevice::HideCursor(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return TRUE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case WM_ACTIVATE: |
|
|
|
case WM_ACTIVATE: |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool active = (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE); |
|
|
|
bool active = (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE); |
|
|
|