Original Post
i need to get input for a console side of my game, (as a standalone server for example) but without using cin>> or gets() every loop, so i opted for getkeyboardstate to capture what keys are down (instead of using wm_keydown as im not creating a window)
but this code fills newkeys, seemingly randomly, wether or not any keys are down
unsigned char newkeys[256];
if (!GetKeyboardState(newkeys))
return false;
has anyone got a workin example of this, for storage for the state of every key, or how i should access it if its not just 1(on) and 0(not down)
__________________
graham "red" reeves.
red@deadpenguin.org
www.deadpenguin.org