Article View: comp.os.msdos.programmer
Article #585How to test for a key ALREADY pressed?
From: Kent Iler
Date: Mon, 06 Apr 1992 22:29
Date: Mon, 06 Apr 1992 22:29
7 lines
761 bytes
761 bytes
Hello, Is there a way to test to see if a key is already pressed. Let say I run this program from the autoexec, and I want to see if the space bar is pressed. If it is I want to do one thing, if not I want to do another. I don't want to wait there for a key to be pressed, just see if it already is. I have C++ and Turbo Pascal to program with. Thanks. --Kent
Technical Details
Message-ID:
<rqjbpINNiqv@matt.ksu.ksu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news From: kentiler@matt.ksu.ksu.edu (Kent Iler) Newsgroups: comp.os.msdos.programmer Subject: How to test for a key ALREADY pressed? Date: 6 Apr 1992 17:29:13 -0500 Organization: Kansas State University Lines: 8 Message-ID: <rqjbpINNiqv@matt.ksu.ksu.edu> NNTP-Posting-Host: matt.ksu.ksu.edu