Article Preview
Buy Now
| Print: | |
| PDF: |
Feature
Mouse Gestures
Issue: 3.4 (March/April 2005)
Author: Joe Strout
Author Bio: Joe Strout occasionally worked with mice and rats in his previous life as a neuroscientist, but never trained them to gesture.
Article Description: No description available.
Article Length (in bytes): 12,091
Starting Page Number: 16
RBD Number: 3410
Resource File(s):
3410.sit Updated: Tuesday, March 15, 2005 at 7:50 PM
3410.zip Updated: Tuesday, March 15, 2005 at 7:50 PM
Related Web Link(s):
http://www.strout.net/info/coding/rb/
http://www.merriampark.com/ld.htm
Known Limitations: None
Excerpt of article text...
A "gesture" is a way of issuing a command to a computer or application by moving something -- typically a mouse or digital pen -- in a certain way. Gestures have a long history in the computing world, dating back at least to the Newton, and are still popular today in tablet PCs. Even with a mouse rather than a pen, many users feel that gestures are a much easier and more efficient way to interact with an application, especially in cases where you use the mouse much more than the keyboard -- for example, a drawing application or web browser.
Gestures should be defined in ways that are easy to remember. For example, a swipe to the left might mean "Go Back" while a swipe to the right means "Forward." A scribble over an object could mean "Delete This." Sometimes a gesture is really a letter: a letter "O" could stand for "Open" while a "C" might stand for "Close." Figure 1 shows some other sample gestures; the possibilities are endless.
If you're writing a mouse-intensive application, you should consider adding support for gestures too. You'll need some way to detect when a gesture has begun -- typically, this involves either a different mouse button, or a modifier key. Then you track the mouse during the drag, and when it's done, you match the stroke traced by the mouse to your set of gestures, and execute the corresponding command.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|








