图形输入板原始输入 [英] Graphics Tablet Raw Input

查看:79
本文介绍了图形输入板原始输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想从笔上获取mouse_move,mouse_down和mouse_up事件(以及是否悬停和笔压/倾斜)(可选).我尝试使用全局挂钩,但是无法将鼠标与手写笔区分开.然后我尝试使用原始输入,并且一切正常,直到我尝试处理原始隐藏的输入数据(因为没有lastxlasty等).我应该怎么做?

Hello, I would like to get the mouse_move, mouse_down and mouse_up event from my stylus(and optionally if it''s hovering or not and pen pressure/tilt). I tried with global hooks, but I can''t distinguish the mouse from the stylus. Then I tried with raw input and everything works well until I try to process the raw hid input data(because there''s no lastx, lasty etc.). How should I should I do it?

推荐答案

我尝试使用Tablet PC SDK成功地使用Table输入. Tablet PC是一种奇怪的Windows版本.它与特殊的平板电脑广泛捆绑销售.显然,没有官方购买此版本的方法可以在带有平板设备或平板显示器的普通计算机上使用该版本.它仅作为OEM产品提供.我经常遇到人们在火车站的建筑中推广这种PC的信息,当时我将其用于通勤.突然,所有这些活动都被抓住了,大多数此类PC都消失了.我非常后悔,因为我是笔输入的狂热者,并且在绘画和照片修饰方面有丰富的经验. (不仅绘图,而且即使没有平板电脑也可以进行照片润饰,就像用斧头修理计算机一样).一切都可以从Microsoft免费下载,甚至手写识别引擎也可以很好地运行.

但是,使用Tablet PC SDK,您实际上并不需要Tablet PC.如果此人只有足够的知识来编译.NET代码,则他们可以拥有Windows 2000及更高版本上Tablet PC的所有功能(然后您可以下载,安装和使用手写识别引擎以及其他一些东西) .该SDK提供并访问单个笔划和笔压信息.适当的事件与鼠标事件是分开的(当然,即使笔也会生成鼠标事件).

请参阅:
http://msdn.microsoft.com/en-us/library/ms840463.aspx [ ^ ].

我仍在使用旧计算机,并且有该SDK的版本;它是功能性的.但是,我不知道在哪里下载它.我非常感谢您提供一个链接.

—SA
I tried to work with Table input, successfully, using the tablet PC SDK. Tablet PC is a weird kind of Windows version. It was promoted extensively bundled with special Tablet PCs. Apparently, there was no an official way to buy this version to use it for a regular computer with the tablet device or a tablet monitor; it was only available as the OEM product. I regularly met people promoting such PCs in the building of railway station which I use for my commute at that time. Suddenly, all this activity was seized, and most of such PCs disappeared. I regret it too much, as I am a fan of pen input and have good experience in drawing and photo re-touching. (Not only drawing, but even photo re-touching without a tablet is like repairing a computer with an axe). Everything could be downloaded from Microsoft for free, even the hand-writing recognition engine, which works pretty well.

However, with Tablet PC SDK, you don''t really need a Tablet PC. One can have all the power of Tablet PC on Windows 2000 and later (and then you can down-load, install and use the hand-writing recognition engine and some other stuff), if this person only have enough knowledge to compile .NET code. The SDK provides and access to individual strokes and pen pressure information. The appropriate events are separate from mouse evens (even though a pen generates the mouse events as well, of course).

Please see:
http://msdn.microsoft.com/en-us/library/ms840463.aspx[^].

I have a version of this SDK on my old computer I still use; and it is functional. However, I don''t know where to download it. I''ll appreciate a link very much.

—SA


无法用C#知道它来自哪个输入设备.这只是一个事件,系统可以连接多个设备,但它们都同时工作,并触发相同的事件.
There is no way to know what input device it came from, in C#. It''s just an event, and the system can have more than one device connected, but they all work at the same time, firing the same events.


这篇关于图形输入板原始输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆