WPF multi-touch development: Install multi-point touch screen simulator on Windows 7

Source: Internet
Author: User
Http://kb.cnblogs.com/page/70876/author: gnie Source: blog Park Release Date: Read: 1071 Original article link full screen read [favorites]

This series will introduce the multi-touch (MT) multi-touch technology, so that developers can learn how to develop applications with the MT function on the Windows platform.Program. As we all know, the Windows 7 operating system has supported hardware devices with mt functions. Drawing Board Program (Painting) is a good example. If your display device has Mt functions, you can draw different patterns in the canvas with two fingers at the same time.

When testing Mt applications, developers need support from Mt hardware devices. Otherwise, we cannot determine whether the programs can run normally. Although there are already many Mt devices on the market, they are expensive. If there is no multi-touch device, can the MT program be developed and tested? The answer is yes, of course. The following describes how to simulate the multi-touch function with Multiple mouse clicks.

Download multi-touch Vista

First, download multi-touch vista from codeplex to simulate multi-touch. Multi-touch Vista actually has many functions, but in this article we only use it as a multi-touch simulator. The following is the project description from multi-touch Vista:

Multi-touch Vista is a user input management layer that handles input from various devices (touchlib, multiple mice, tuio etc .) and normalises it against the scale and rotation of the target window. now with multitouch driver for Windows 7.

Install driver

Decompress the package, enter the driver directory, and select 32 or 64-bit according to the operating system. Run install driver. CMD (you can also run the program in cmd ).

The following prompt is displayed. Select "install this driver software anyway" to continue the installation.

Device management

After the driver is installed, go to the Device Manager, select "Human Interface Devices", right-click "Universal Software HID device", and disable it (Disable).

Select "yes". OK.

Right-click "Universal Software HID device" and enable it again (Enable).

Touch Screen Settings

Enter "pen and touch" in the "Start" menu to run the application. If the previous step "Universal Software HID device" is not started, the program cannot be run.

Click the "Touch" tab, select the "Touch Pointer" option below, and click OK.

Running Simulator

First, connect a USB mouse to the computer to simulate multi-touch operations. Return to the decompressed directory and runMultitouch.service.lele.exe.

After the service is started, you can see the two red points shown, representing the two mouse input devices.

RunMultitouch.driver.lele.exe

Last runMultitouch.configuration.wpf.exe

Click "Configure device" and select "Block Native Windows mouse input... ... ", Click" OK ".

After that, the Windows mouse will no longer work, instead of the two red dots on the screen.

Open the drawing board (paint). You can draw a curve with both the mouse and mouse.

So far, we have achieved all the multi-touch functions through the simulator without the MT device, and even Windows 7 believes that the current display has the multi-touch screen function. With this simulator, you can test the MT application normally. The next article will introduce how to develop multi-touch applications in WPF.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.