| delorie.com/archives/browse.cgi | search |
| From: | Edward Hill <edward_hill AT gecm DOT nospam DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | detecting multiple keypresses |
| Date: | Tue, 01 Dec 1998 14:21:51 -0800 |
| Organization: | Easams Ltd., Software Systems (ESS) |
| Lines: | 15 |
| Message-ID: | <36646BFF.77F3@gecm.nospam.com> |
| NNTP-Posting-Host: | pc02372.gmsws.gecm.com |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 3.01C-GECMMTL (Win95; I; 16bit) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
I have spent a while looking at
getkey() and _bios_keybrd() and a few more
but I can't seem to find anything to use
to just detect if a particular key is pressed.
so say if(keyboard_keypressed('a')printf("a\n");
if(keyboard_keypressed('b')printf("b\n");
and the a and b buttons are both held down
a and b will be printed out.
Is there a way of achieving this?
any help is much apreciated.
Ed
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |