From e71075e4fbe78c86b2712eb9d79e0ed7db502adb Mon Sep 17 00:00:00 2001 From: Kaldaien Date: Fri, 15 Nov 2024 13:53:17 -0500 Subject: [PATCH] Block keyboard input for ReShade while its overlay is active and the game window is not --- src/config.cpp | 6 ++---- src/input/keyboard.cpp | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 6847f4e2d..487ebf669 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -3761,10 +3761,9 @@ auto DeclKeybind = config.priority.perf_cores_only = true; config.window.background_render = true; config.window.fullscreen_no_saver = true; - config.input.ui.capture_hidden = true; config.input.keyboard.override_alt_f4 = true; // Oh lord, kill that buggy exit confirmation - config.render.framerate.sleepless_render = false; - config.render.framerate.sleepless_window = false; + config.render.framerate.sleepless_render = true; + config.render.framerate.sleepless_window = true; config.input.gamepad.xinput.emulate = true; // XInput-only config.render.hdr.remaster_8bpc_as_unorm = true; config.render.hdr.remaster_subnative_as_unorm = true; @@ -3773,7 +3772,6 @@ auto DeclKeybind = config.render.dxgi.deferred_isolation = true; // Needed for correct texture caching on staging uploads config.render.d3d12.force_anisotropic = true; - config.render.d3d12.max_anisotropy = 6UL; config.render.d3d12.force_lod_bias = 0.0f; SK_D3D11_DeclHUDShader_Vtx (0x187097b5); diff --git a/src/input/keyboard.cpp b/src/input/keyboard.cpp index 3670613e1..290811e31 100644 --- a/src/input/keyboard.cpp +++ b/src/input/keyboard.cpp @@ -180,7 +180,8 @@ SK_ImGui_WantKeyboardCapture (bool update) config.input.mouse .disabled_to_game = 2; config.input.keyboard.disabled_to_game = 2; capture.store (false); - return false; + + return !SK_IsGameWindowActive (); } else {