home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vnet.ibm.com
- From: Pauley@vnet.ibm.com (Paul Benson)
- Message-ID: <19920910.121328.487@almaden.ibm.com>
- Date: Thu, 10 Sep 92 15:05:47 EDT
- Newsgroups: comp.sys.apple2
- Subject: Re: Keypress function in pascal?
- Organization: IBM Personal Computer Co. - PS/1 Development
- Disclaimer: This posting represents the poster's views, not those of IBM
- News-Software: UReply 3.0
- References: <1992Sep5.170740.54265@qut.edu.au>
- Lines: 18
-
- In <1992Sep5.170740.54265@qut.edu.au> hollandd@qut.edu.au writes:
- >But to the point. Does there exist in Orca pascal a function that
- >will return a keypress without waiting for return to be pressed?
- >Not as far as I can tell from the manual?
-
- Not that I know of in Pascal (I don't own ORCA/Pascal), but you may want
- to look deeper in the manual or in some of the sample codo on the sample
- disk. I know there is a routine in the C manual (but I think that is
- just to show off the mini-assembler). So, you have a few of options.
- Learn how to access memory directly in ORCA/Pascal and check the keyboard
- latches. OR write the assembly routine with the miniassembler as in the
- C manual and then link it into your Pascal program. OR use some tool
- calls (Either GetChar or thru the event manager). Ask someone with
- ORCA/Pascal as to which USING directive to use for the text toolset and
- how to actually call GetChar should you wish to use that.
-
- Pauley
- GEnie: P.Benson1
-