From bfba7267b84990b0cf776ff296b1a28e1de25a0d Mon Sep 17 00:00:00 2001 From: KnucklesB Date: Tue, 11 Jun 2024 20:40:28 -0300 Subject: [PATCH] Removed the double GetKeyDown... --- user/hooks/hooks.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/user/hooks/hooks.cpp b/user/hooks/hooks.cpp index b5dbf4d..050218c 100644 --- a/user/hooks/hooks.cpp +++ b/user/hooks/hooks.cpp @@ -717,10 +717,6 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval pressed = true; } - if (GetKeyDown(KeyCode::Insert)) { - pressed = true; - } - else if (!GetKeyDown(KeyCode::Insert) && pressed) { open_menu = !open_menu;