Meanwhile you can always query the array directly with Keys[WHATEVER_KEY] instead of using KeyHit and then decide if you want to clear it yourself or not.
The problems I am having wouldn't be solved by doing that. I want to be able to tell the difference between a hit and a hold. In short, I just want to get the same behavior I do from the built-in BRL KeyHit() and KeyDown() functions, where the click is registered once then KeyHit() is false and KeyDown() is true as long as the key is held.
I guess I could track this manually by doing something like this:
If (KeyDown(KEY_G) And Not KeyDownLastFrame[KEY_G]) // The key has been clicked since the last frame, so do something End If KeyDownLastFrame[KEY_G] = Keys[KEY_G]
However, I think tracking them in seperate arrays should have the same effect.
SpaceAce: Just added a KeyStates[] array for you. Tested existing code and nothing seems broke
Cool, is this linked to KeyHit() now or is it just an array for direct access?
SpaceAce