Goal
In this hands-on experiment, we'll learn how to manage gesture events, including:
• Understand the meaning of manipulating objects using gesture events
• Check the presence and readiness of multi-touch hardware
• Extract information from the gesture Windows message
System Requirements
To complete this experiment, you must have the following tools:
Microsoft Visual Studio 2008 SP1
windows 7
Windows 7 SDK
• A multi-point touch hardware Device
Introduction
To create a multi-touch-driven application, there are 3 ways to choose: "Good", "excellent", or "best" approach.
The "good" method is the simplest of these methods. The touch capability should be taken into account when designing the application user interface. A natural interface can be built using a number of simple tools based on Win32 to provide a better user experience. Scrolling and other touch capabilities come from the Win32 control, no extra work is required. For example, now try scrolling through the document you are reading with your finger! This is the "good" method.
The "best" approach is to read the low-level touch events as input to the application. Applications such as "Piano" or complex controls, such as multiple sliders for users to manipulate at the same time, are good examples. Run MS Paint, select a drawing tool from the toolbox, and then draw with your 4 fingers (if supported by hardware):
In this hands-on experiment, we'll use the "good" approach. The "good" approach is the easiest way to get touch events for your application, and can be used to customize scaling, rotation, and movement operations without having to read and manipulate the original touch events. Let's immediately experience multi-touch gestures!