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

  1. Xref: sparky comp.lang.c:20024 comp.programming:3540
  2. Path: sparky!uunet!cs.utexas.edu!torn!utgpu!attcan!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Newsgroups: comp.lang.c,comp.programming
  5. Subject: Re: Telling if the SHIFT key is down.
  6. Message-ID: <1993Jan21.132348.19617@druid.uucp>
  7. Date: 21 Jan 93 13:23:48 GMT
  8. References: <00966E8E.9CED30C0@Msu.oscs.montana.edu>
  9. Followup-To: comp.programming
  10. Organization: D'Arcy Cain Consulting
  11. Lines: 28
  12.  
  13. ooprb@Msu.oscs.montana.edu writes:
  14. >REQUEST:
  15. >With Dos 5.0 and Borland 3.0, I would like to tell if the 
  16. >shift key (ignoring all other keys presses) is being held 
  17. >down on the go - not waiting for any key press.
  18.  
  19. This is really a DOS specific question but I have directed followups
  20. to comp.programming because I want to discuss your general strategy.
  21.  
  22. >WHAT FOR:
  23. >I'm writting a program that updates numbers by the press
  24. >of a mouse button.  I would like to change the value by
  25. >a different amount if the shift key is being pressed when 
  26. >a mouse button is pressed.
  27.  
  28. Don't do this.  If you must change the meaning of a mouse button use
  29. another button to do this.  Your method requires your users to have
  30. their hands on two different devices in order to do input.  In fact
  31. why not just make use of the different buttons on the mouse?  You could
  32. for example increment by 1 on the left, 5 on the right and 3 on the
  33. middle.  If your user has a two button mouse it still works but with
  34. less intermediate control.
  35.  
  36. -- 
  37. D'Arcy J.M. Cain (darcy@druid.com)  |
  38. D'Arcy Cain Consulting              |   There's no government
  39. Toronto, Ontario, Canada            |   like no government!
  40. +1 416 424 2871          DoD#0082   |
  41.