is there any other way to detect key strokes than in this function
i tried directinput but this:Code:LRESULT CALLBACK MainProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) switch (message) case WM_KEYDOWN:
works as GetAsyncKeyState, and i need to detect only one strokeCode:if(inputkeyboard->GetDeviceState(256, &keystate) == DI_OK) if(keystate[DIK_ESCAPE] & 0x80)