how can i be able to poll interrupts from some keys on the keyboard using a C code. i dont know the methods and the header files to include
how can i be able to poll interrupts from some keys on the keyboard using a C code. i dont know the methods and the header files to include
What OS?
Windows Xp
If you're wanting to detect keypresses, the easiest way to do it is probably by including windows.h (Windows API Header File) and using either GetAsyncKeyState or by processing messages sent to the message queue of your program. Another way is to install a hook to monitor system or thread keyboard messages.
The one that you want to use will probably depend on what you are writing.
P.S I'm assuming that's what you mean by poll interrupts (Which is used in DOS??).
You should get an idea on how to do it from the following FAQ.
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
-ssharish
Life is like riding a bicycle. To keep your balance you must keep moving - Einstein