如何让手写笔不控制鼠标?

发布于 2024-10-01 05:43:54 字数 168 浏览 0 评论 0原文

我想在 win32 应用程序中将手写笔位置与鼠标位置分开。我正在使用 wintab sdk,并且看过有关区分来自笔/橡皮擦或鼠标的 mousebuttondown/up 事件的文章。但我还没有找到任何可以让你将手写笔用作第二个设备的东西。我想响应WT_PACKET事件来确定画笔的位置进行绘画,并使用鼠标光标进行其他操作。

I want to separate the stylus position from the mouse position in a win32 application. I'm using the wintab sdk and I've seen articles about distinguishing between mousebuttondown/up events coming from the pen/eraser or mouse. But I haven't been able to find anything that lets you use the stylus as a second device. I want to respond to WT_PACKET events to determine the position of the pen for painting, and use the mouse cursor for other operations.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绿光 2024-10-08 05:43:54

我想通了。

LOGCONTEXT lc;

lc.lcOptions |= CXO_SYSTEM // 该标志将其链接到系统游标。

返回 WTOpen(hWnd, &lc, TRUE;

.....

I figured it out.

LOGCONTEXT lc;

lc.lcOptions |= CXO_SYSTEM // this flag links it to the system cursor.

return WTOpen(hWnd, &lc, TRUE;

.....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文