home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20290 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!gatech!ncar!vexcel!copper!mercury.cair.du.edu!mnemosyne.cs.du.edu!nyx!ggruscho
  2. From: ggruscho@nyx.cs.du.edu (George Gruschow)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Telling if the SHIFT key is down.
  5. Message-ID: <1993Jan26.223832.445@mnemosyne.cs.du.edu>
  6. Date: 26 Jan 93 22:38:32 GMT
  7. References: <00966E8E.9CED30C0@Msu.oscs.montana.edu>
  8. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  9. Organization: University of Denver, Dept. of Math & Comp. Sci.
  10. Lines: 16
  11.  
  12. ooprb@Msu.oscs.montana.edu writes:
  13.  
  14. >TRIED:
  15. >I've tried kbhit() and bioskey(0/1) with no success.
  16.  
  17. >Rocky B.  -  ooprb@trex.oscs.montana.edu
  18.  
  19. Try using some inline assembly! Check out any Interupt list (I'd suggest the
  20. "Ultimate DOS programmer's Manual") for the shift key bios routine, call it,
  21. and place the returned value in the address specified at the top of the stack
  22. (assuming your passing a variable to set)...
  23. --
  24. -------------------------------------------------------------------------------
  25. George Gruschow                                Death do you gronk.
  26. ag625@yfn.ysu.edu                              ggruscho@nyx.cs.du.edu
  27. -------------------------------------------------------------------------------
  28.