Original Post
I'm having some trouble getting GetKeyState() to work properly. I need it to detect letters and numbers, which it's not doing. It detects the enter key, caps lock, shift, tab, etc but nothing for letters and numbers. Here's what I'm doing..
First there's this, which runs from 0 to 127, checking 128 different "keys."
Then this just sets the state of the key using GetKeyState, where _key == i from the loop in pollKeys() method. Now I've looked on MSDN which says to use the ascii value for letters and numbers, which is what I thought I was doing here. Yet, only the keys that I mentioned above are actually triggering.
void HVSTInput::CkeyboardTrigger::pollKeys(){ for (int i = 0; i < 128; i++) { _keyboard->setKeyState(); }}First there's this, which runs from 0 to 127, checking 128 different "keys."
void HVSTInput::CKey::setKeyState(){ _previousState = _currentState; _currentState = GetKeyState(_key);}Then this just sets the state of the key using GetKeyState, where _key == i from the loop in pollKeys() method. Now I've looked on MSDN which says to use the ascii value for letters and numbers, which is what I thought I was doing here. Yet, only the keys that I mentioned above are actually triggering.