Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uwm.edu!bionet!agate!ucbvax!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!star.cs.vu.nl!mgvalen From: mgvalen@cs.vu.nl (Valent MG) Newsgroups: comp.sys.ibm.pc.misc Subject: Problem trying to write fast keyb reading Keywords: fast keyboard reading Message-ID: <9633@star.cs.vu.nl> Date: 11 Apr 91 13:51:42 GMT Sender: news@cs.vu.nl Lines: 25 To everybody. I have a question or 3 (surprise !). I'm trying to write a (fast) game in Turbo C on an AT, so I want the keyboard-reading to happen as fast as possible. The fastest way is, I think, using inportb(0x60). The problem now is, that the keyboard-buffer fills up, and because I'm not emptying it, I get the buffer-full interrupt & bell. I could solve this by using getch() after each key-hit, but that slows down the (fast) reading quite a lot. So my questions are: - is there a way to turn that buffering off (and in this way , also the checking if the buffer is full)? (In this case, I'll probably miss a few key-hits, but that doesn't matter.) - or some simpel way to check how full the buffer is, and when necessary, emptying the buffer by clearing some bit (and perhaps give an acknowledgement) ? - am I totally wrong and should I do the keyboard-reading completely different (and what is that better solution) ? Thanks already from this side, Marco V.