game programming

HI I am designing a game using only graphics.h and using keyboard hits.
In my program i detect keyboard hits inside a while loop and then the changes(walking/running) occurs along with a delay.If i continuously press the key ,the while loop gets the same character and runs it even when im not pressing...
I want to move only as long as keyboard is hit
Pls help me
Thanx in advanced
You can't expect a system intended for entering text to work fine for a game. Drop the console and move to graphics. google SFML.
i'm in my school and doing my project... they allow only borland c++ compiler
so do anyone else have any ideas?????
Topic archived. No new replies allowed.