Skip to content

Commit

Permalink
Merge Flush raw input mouse buttons on focus loss (pr-3076)
Browse files Browse the repository at this point in the history
402fb65 - fix(input/five): flush raw input mouse buttons on focus loss
  • Loading branch information
prikolium-cfx committed Feb 5, 2025
2 parents 7a6ab03 + 402fb65 commit fc70254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/components/rage-input-five/src/InputHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ void InputHook::SetGameMouseFocus(bool focus)

if (g_isFocusStolen)
{
rage::g_input.m_Buttons() = 0;
if (*g_diMouseDevice)
{
(*g_diMouseDevice)->Unacquire();
Expand Down

0 comments on commit fc70254

Please sign in to comment.