How can i find the key state of individual characters/numbers?
I guess what i mean is i need some help understanding VK and the hexedecimal pointer.
Anyone care to explain? thanks alot!


Code:
#include <iostream>
#include  <windows.h>

using namespace std;

int main()
{
while(1)
{
    if(GetKeyState(VK_CONTROL) & 0x80)
    {
        cout<<"hey"<<endl;
    }
        
    // continue looping regardless, without waiting for any input.
}

system("pause");
return 0;
}