E EmperorIQ Platinum Member Sep 30, 2003 2,003 0 0 Apr 28, 2005 #1 What do i need in order for my program to detect a certain input from the keyboard? How do i enable interrupts in C?
What do i need in order for my program to detect a certain input from the keyboard? How do i enable interrupts in C?
I imported_karen Member Apr 28, 2005 40 0 0 Apr 28, 2005 #2 In windows, you can set up a system hook...I don't remember which one though
E EmperorIQ Platinum Member Sep 30, 2003 2,003 0 0 Apr 28, 2005 #3 oh, and also, how do i detect an exact key? such as space bar, or up arrow and down arrow? Thanks!
EagleKeeper Discussion Club Moderator<br>Elite Member Staff member Oct 30, 2000 42,589 5 0 Apr 28, 2005 #4 Once you detect the keypress (via an interrupt), then look at the character code. That will tell you which key or key combinations are being pressed. Interrupt 21h, Function 3Fh reads the eyboard
Once you detect the keypress (via an interrupt), then look at the character code. That will tell you which key or key combinations are being pressed. Interrupt 21h, Function 3Fh reads the eyboard