2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-17 03:26:02 +00:00

SteamTarget: Fix overlay closing not being detected (?)

This commit is contained in:
Peter Repukat 2017-12-28 22:20:17 +01:00
parent 248d297203
commit 6cad07e380

View File

@ -362,12 +362,13 @@ LRESULT WINAPI SteamTargetRenderer::HookCallback(int nCode, WPARAM wParam, LPARA
if (nCode >= 0) if (nCode >= 0)
{ {
PMSG msg = reinterpret_cast<PMSG>(lParam); 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) //Posted when the overlay gets opened
{ {
overlayOpen = true; overlayOpen = true;
std::cout << "Overlay Opened!\n"; std::cout << "Overlay Opened!\n";
} }
else if (msg->message == 0x14F7 || msg->message == 512) else if (msg->message == 0x14F7 || msg->message == 0x14FD || msg->message == 512 || msg->message == 0x2a3)
{ {
overlayOpen = false; overlayOpen = false;
std::cout << "Overlay closed!\n"; std::cout << "Overlay closed!\n";