how can i get a single character from the keyboard without paausing the program?
so it looks to see if a button has been pressed, and if one hasnt, then it moves on.
scanf doesnt work, getch doesnt work, bioskey(0) or (1) dont work
but another thing is, how do i get rid of the repeat delay thing. where you hold a button, it prints one character, waits THEN begins to rapidly draw characters
i want to get rid of this delay!
It sounds like you may be writing a game...
For more flexable control of the keyboard, you would need to write your own keyboard handler: ie hooking the keyboard interrupt INT 9 and reading the scan codes. This will allow the user to press two or more keys at once etc...
There may be a way to get rid of, or reduce, your repeat delay (Some bioses support this and it can also be done in Windows control panel)
Good luck.
hmmm, sounds like im gonna have to learn some asm.....
and actually, i am gonna make a game, but right now im still working on my first program in C, its just a little dot that drives around and bangs off the walls(its actually fun!) im just learning the basics i'll need later
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.