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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user