From a9e8557af6afbdf55e7ae169f23c513f1bf44927 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:06:18 +0200 Subject: [PATCH] fix input disabling. --- r5dev/src/id3dx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/r5dev/src/id3dx.cpp b/r5dev/src/id3dx.cpp index 013f4c06..5a1d3245 100644 --- a/r5dev/src/id3dx.cpp +++ b/r5dev/src/id3dx.cpp @@ -267,12 +267,14 @@ void DrawImGui() GameGlobals::InputSystem->EnableInput(false); // Disable input. DrawConsole(); } + if (g_bShowBrowser) { GameGlobals::InputSystem->EnableInput(false); // Disable input. DrawBrowser(); } - else + + if (!g_bShowConsole && !g_bShowBrowser) { GameGlobals::InputSystem->EnableInput(true); // Enable input. }