Hi there,
I'm new to this website so hi to all. :)
I'm programming a game in C for Ms-Dos platform. The problem is that functions like scanf or getch would only return to you an ascii character not the status of the key.
i.e. if the user presses a key the game should not move on step forward but keep on moving until that key is kept pressed.
I tried using the bit x417 where the DOS stores the pressed status of keys. But only of special keys like Ctrl and Alt.
So guys, any idea how knowing status of keys like spacebar and the arrowkeys might be possible?:mellow:
How to detect the status of a key in ANSI C?
Started by scanpst, Feb 20 2009 09:57 AM
1 reply to this topic


Sign In
Create Account

Back to top









