home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!english
- From: english@alicudi.usc.edu (Joe English)
- Newsgroups: comp.programming
- Subject: Re: Telling if the SHIFT key is down.
- Date: 22 Jan 1993 10:45:59 -0800
- Organization: Nerds of Action
- Lines: 47
- Distribution: world
- Message-ID: <1jpfd7INNit@alicudi.usc.edu>
- References: <00966E8E.9CED30C0@Msu.oscs.montana.edu> <1993Jan21.132348.19617@druid.uucp>
- Reply-To: joe@trystero.art.com
- NNTP-Posting-Host: alicudi.usc.edu
-
-
- In article <1993Jan21.132348.19617@druid.uucp>, darcy@druid.uucp (D'Arcy J.M. Cain) writes:
- |> ooprb@Msu.oscs.montana.edu writes:
-
- |> >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.
-
- Using keyboard modifiers in conjunction with mouse buttons
- seems perfectly reasonable. Both the Motif and Open Look
- style guides use keyboard modifiers to change mouse button
- behavior all the time, and many Macintosh programs do too.
-
- Speaking from personal experience, I have no difficulty
- using Ctrl, Shift, and Alt in conjuction with the mouse;
- the mouse only takes one hand to use and on most keyboards
- the modifiers are all available on the left side. Pressing
- Control-meta-shift-button three might pose some problems
- for left-handed users, though.
-
- |> 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.
-
- This severely restricts the number of functions you can
- perform with the mouse, especially if it only has one or
- two buttons. The latest Motif Style guide defines at
- least 14 standard mouse-based operations (probably more),
- most of them involving different selection and transfer
- methods. You could get by without all but one or two
- of them, but intermediate and advanced users probably
- wouldn't want to.
-
-
- Just my two cents worth,
-
- --Joe English
-
- joe@trystero.art.com
-