Original Post
Hey!
Can someone help me out with the GetAsyncKeyState() function? I know that you can use it for buttons like the escape buttom, which is VK_ESCAPE. That''s what I have in my program:
if (GetAsyncKeyState(VK_ESCAPE))
{
MessageBox(NULL, "Bye", "Exit", MB_OK);
PostQuitMessage(0);
}
I was just wondering if it''s possible for me to use this function to get other keyboard buttons (is there a list, maybe?). I tried to use regular Ascii numbers. "d" is 100 for example, but when I put an if (GetAsyncKeyState(100)) it never returned true, always false. Does anyone know how I can make it recognize those keys? Or would I have to put it in the WndProc() function?
Thanks,
Voytek