Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
Force67 committed Nov 26, 2024
2 parents b340d1b + 1fe2e20 commit e7f91cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Code/client/Services/Generic/InputService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,14 @@ LRESULT CALLBACK InputService::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPAR
}
ProcessKeyboard(virtualKey, scancode, KEYEVENT_CHAR, false, false);
}
// If the player tabs out/in with UI visible, this WndProc doesn't run during mouse or keyboard events.
// When player tabs in, force the UI state
else if (uMsg == WM_SETFOCUS && s_pOverlay->GetActive())
{
TiltedPhoques::DInputHook::Get().SetEnabled(true);
s_pOverlay->SetActive(true);
pRenderer->SetCursorVisible(true);
}
else if (uMsg == WM_INPUTLANGCHANGE)
{
s_currentACP = GetRealACP();
Expand Down

0 comments on commit e7f91cc

Please sign in to comment.