   Keyboard control(C++)
  I Am trying to add keyboard control to one of my programmes buthave been unsuccessfull. This is not a GL app, so its a little different. Anyway here is the code/*Initialize everything*/   HANDLE Input;Input=GetStdHandle(STD_INPUT_HANDLE);FlushConsoleInputBuffer(Input);INPUT_RECORD InputRecord;DWORD Events=0;int bKeyDown=0;ReadConsoleInput(Input, &InputRecord, 1, &Events);   bKeyDown=InputRecord.Event.KeyEvent.bKeyDown;/*This is the part were i check for key hits*/if( InputRecord.EventType == KEY_EVENT && bKeyDown){if( InputRecord.Event.KeyEvent.wVirtualKeyCode == VK_UP ){p.y=p.y-1;}if( InputRecord.Event.KeyEvent.wVirtualKeyCode == VK_DOWN ){p.y=p.y+1;}if( InputRecord.Event.KeyEvent.wVirtualKeyCode == VK_RIGHT ){p.x=p.x+1;}if( InputRecord.Event.KeyEvent.wVirtualKeyCode == VK_LEFT ){p.x=p.x-1;}}Please help. 
  GetAsyncKeyState ?! xD4example:if(GetAsyncKeyState(VK_UP) & 0x8000) y--;...T2k ;  Thanks man. That did it. 