如何检测屏幕上任何位置发生的触摸事件? [英] How can I detect touch events happening anywhere on the screen?

查看:79
本文介绍了如何检测屏幕上任何位置发生的触摸事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

假设我已经创建了一个窗口。我想检测在窗口外(屏幕中的任何地方)窗口的触摸事件。那可能吗?如果是这样,你能指导我一些我应该研究的内容。

Lets suppose I have created a window. I want to detect touch events made anywhere outside (anywhere in the screen) that window too. Is that possible? If so, can you direct me to some content that I should study for the same.

推荐答案

感谢您发布MSDN论坛。

Thank you for posting MSDN forum.

关于如何在窗口上检测触摸事件,您可以参考这些文档。

About how to detect touch events on window, you can reference these documents.

< a href ="https://msdn.microsoft.com/en-us/library/windows/desktop/dd562197(v=vs.85).aspx\"target ="_ blank">触摸输入

Windows支持通过Windows Touch的端到端平台和用户界面框架公开的交互模型进行触摸输入

Windows supports touch input through the interaction model exposed by the end-to-end platform and user interface framework of Windows Touch

触摸注入

所有Microsoft Windows应用程序都应具有出色的触摸体验。创建这样的体验比你想象的要容易

All Microsoft Windows applications should have a great touch experience. And creating such an experience is easier than you think

一些演示
关于触摸,我希望它会对你有所帮助。 

There are some demos about touch, I hope that it would be helpful for you. 

如果您遇到某些问题,请随时与我联系。

If you are encountering some issue, please feel free to contact me.

最诚挚的问候,

Hart


这篇关于如何检测屏幕上任何位置发生的触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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