Add keyboard handling functionality

Added function that creates settings.ini file but it creates empty file :) I will deal with it later.
This commit is contained in:
Jadis0x
2024-05-26 23:08:00 +03:00
parent ad4bf3e659
commit 231087da51
4 changed files with 234 additions and 17 deletions

View File

@@ -597,12 +597,12 @@ HRESULT __stdcall hookD3D11Present(IDXGISwapChain* pSwapChain, UINT SyncInterval
return phookD3D11Present(pSwapChain, SyncInterval, Flags);
}
if (GetKeyState(VK_INSERT) & 0x8000) {
if (GetKeyDown(KeyCode::Insert)) {
pressed = true;
}
else if (!(GetKeyState(VK_INSERT) & 0x8000) && pressed) {
else if (!GetKeyDown(KeyCode::Insert) && pressed) {
open_menu = !open_menu;
pressed = false;