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