问题描述
我有一个Kinect的应用程序,我可以生成不同的1-4分屏(左/右手,最多2人),我想能够发送每个点
与焦点,多点触摸消息的应用程序。
I have a Kinect application that I can generate 1-4 distinct screen points (Left/Right hands for up to 2 people) and I would like to be able to send each Point
to the application with focus as a multi touch message.
SendInput
发送鼠标移动,按下鼠标和鼠标了消息,但据我所知,它不支持 WM_TOUCH
消息。
I'm currently using SendInput
to send mouse move, mouse down, and mouse up messages, but AFAIK, it doesn't support the WM_TOUCH
messages.
有谁知道一个简单的方法在C#发送多点触摸的消息?作为一个测试,我想是能够使用Kinect在MS油漆,并用双手画(以及风的所有的颜色)
Does anyone know of an easy way to send multi touch messages in C#? As a test I would like to be able to use the Kinect in MS Paint, and paint with both hands (as well as all the colors of the wind)
推荐答案
您需要的是窗口有问题。你需要撰写的消息是的消息。你可以找到 WM_TOUCH
的。
What you want is to send messages to the window in question. The message you need to compose is the WM_TOUCH
message. You can find a very helpful discussion thread on WM_TOUCH
here.
希望这有助于!
这篇关于C#的多点触控模拟与Kinect的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!