Skip to content

Commit e7f91cc

Browse files
committed
2 parents b340d1b + 1fe2e20 commit e7f91cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Code/client/Services/Generic/InputService.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,14 @@ LRESULT CALLBACK InputService::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR
400400
}
401401
ProcessKeyboard(virtualKey, scancode, KEYEVENT_CHAR, false, false);
402402
}
403+
// If the player tabs out/in with UI visible, this WndProc doesn't run during mouse or keyboard events.
404+
// When player tabs in, force the UI state
405+
else if (uMsg == WM_SETFOCUS && s_pOverlay->GetActive())
406+
{
407+
TiltedPhoques::DInputHook::Get().SetEnabled(true);
408+
s_pOverlay->SetActive(true);
409+
pRenderer->SetCursorVisible(true);
410+
}
403411
else if (uMsg == WM_INPUTLANGCHANGE)
404412
{
405413
s_currentACP = GetRealACP();

0 commit comments

Comments
 (0)