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:
parent
248d297203
commit
6cad07e380
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user