home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!news.iastate.edu!news
- From: hal@budapest.math.macalstr.edu (Harold Byron Bouma)
- Subject: Re: Keypress function in pascal?
- Message-ID: <1992Sep10.224945.1480@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames IA
- References: <19920910.121328.487@almaden.ibm.com>
- Date: Thu, 10 Sep 1992 22:49:45 GMT
- Lines: 33
-
- Paul Benson writes
- > 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
-
- Well, you could also do it the more "Apple perferred way" by using
- the event manager and just getting the next key event. Its easy and works quite
- well. Other ways could also be done by using the console driver and getting
- input from there in no-wait-mode, but thats only for text applications (but can
- the console driver be used for input while graphical applications are running.
- hmm...) but if you are in graphics, you should use the event manager, because
- much of Apple's desktop interface uses the event manager anyways...
-
- | Hal Bouma | Send mail to: HBouma@Macalstr.edu |
- | Macalester College, St. Paul, MN. | and HBouma@Macalstr.Bitnet |
- \ Things that make you go Hmmm: System 6, GNO, DreamGrafix, NCS/DSP card /
- \ Coming sometime this decade for the //GS : NBA! (GNO compatible too!) /
- \ Drop by and say hi to us anytime on the #AppleIIGS channel on IRC!! /
-