Article View: alt.msdos.programmer
Article #125How to test for key ALREADY pressed
From: Kent Iler
Date: Mon, 06 Apr 1992 22:47
Date: Mon, 06 Apr 1992 22:47
8 lines
756 bytes
756 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:
<rqkdmINNkhe@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: alt.msdos.programmer Subject: How to test for key ALREADY pressed Date: 6 Apr 1992 17:47:18 -0500 Organization: Kansas State University Lines: 8 Message-ID: <rqkdmINNkhe@matt.ksu.ksu.edu> NNTP-Posting-Host: matt.ksu.ksu.edu