2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-03 09:40:18 +00:00

StamTarget: Tweak overlay opened/Closed messages

This commit is contained in:
Peter Repukat 2018-01-21 17:33:17 +01:00
parent 30795a1ae0
commit 76d5ea0fc7
2 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,7 @@ LRESULT WINAPI SteamTargetRenderer::HookCallback(int nCode, WPARAM wParam, LPARA
{
PMSG msg = reinterpret_cast<PMSG>(lParam);
std::cout << "DEBUG: " << "message: " << msg->message << std::endl;
if (msg->message == 0x14FA) //Posted when the overlay gets opened
if (msg->message == 0x14FA || msg->message == 0x14FF) //Posted when the overlay gets opened
{
overlayOpen = true;
std::cout << "Overlay Opened!\n";

View File

@ -94,6 +94,7 @@ private:
static std::atomic<bool> overlayOpen;
static HHOOK hook;
HWND hwForeGroundWindow = nullptr;
bool bNeedFocusSwitch = false;