home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / apple2 / 20112 < prev    next >
Encoding:
Text File  |  1992-09-10  |  2.4 KB  |  45 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!news.iastate.edu!news
  3. From: hal@budapest.math.macalstr.edu (Harold Byron Bouma)
  4. Subject: Re: Keypress function in pascal?
  5. Message-ID: <1992Sep10.224945.1480@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames IA
  8. References: <19920910.121328.487@almaden.ibm.com>
  9. Date: Thu, 10 Sep 1992 22:49:45 GMT
  10. Lines: 33
  11.  
  12. Paul Benson writes
  13. > In <1992Sep5.170740.54265@qut.edu.au> hollandd@qut.edu.au writes:
  14. > >But to the point.  Does there exist in Orca pascal a function that
  15. > >will return a keypress without waiting for return to be pressed?
  16. > >Not as far as I can tell from the manual?
  17. > Not that I know of in Pascal (I don't own ORCA/Pascal), but you may want
  18. > to look deeper in the manual or in some of the sample codo on the sample
  19. > disk.  I know there is a routine in the C manual (but I think that is
  20. > just to show off the mini-assembler).  So, you have a few of options.
  21. > Learn how to access memory directly in ORCA/Pascal and check the keyboard
  22. > latches.  OR write the assembly routine with the miniassembler as in the
  23. > C manual and then link it into your Pascal program.  OR use some tool
  24. > calls (Either GetChar or thru the event manager).  Ask someone with
  25. > ORCA/Pascal as to which USING directive to use for the text toolset and
  26. > how to actually call GetChar should you wish to use that.
  27. > Pauley
  28. > GEnie: P.Benson1
  29.  
  30.     Well, you could also do it the more "Apple perferred way" by using
  31. the event manager and just getting the next key event. Its easy and works quite  
  32. well. Other ways could also be done by using the console driver and getting  
  33. input from there in no-wait-mode, but thats only for text applications (but can  
  34. the console driver be used for input while graphical applications are running.  
  35. hmm...) but if you are in graphics, you should use the event manager, because  
  36. much of Apple's desktop interface uses the event manager anyways...
  37.  
  38. | Hal Bouma                            | Send mail to: HBouma@Macalstr.edu    |
  39. | Macalester College, St. Paul, MN.    | and           HBouma@Macalstr.Bitnet |
  40.  \  Things that make you go Hmmm:  System 6, GNO, DreamGrafix, NCS/DSP card  /
  41.   \  Coming sometime this decade for the //GS : NBA! (GNO compatible too!)  /
  42.    \  Drop by and say hi to us anytime on the #AppleIIGS channel on IRC!!  /
  43.