[UWP]如何检测按下笔的按钮 [英] [UWP]How to detect that pen's button was pressed

查看:60
本文介绍了[UWP]如何检测按下笔的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么方法可以检测用户何时用APP按下或释放笔上的按钮?

Is there any way how to detect when user presses or releases button on the pen withing the APP?

顶部按钮或"右键单击"按钮表面笔上的按钮

Either the top button, or "right click" button on surface pen

或者,如何检测笔触摸时按下按钮
InkCanvas

Alternatively, how to detect, that the button is pressed when pen touches InkCanvas.

推荐答案

你好Daniel Turan,

Hello Daniel Turan,

据我所知,没有这样的内置功能API为您执行此操作。您只能配置单击,双击或按住"系统设置 - >中的操作。设备"。

As far as I know, there’s no such built-in API for you to do it. You can only configure its action of single click, double click or press and hold in "system settings -> Devices".

请参阅Sunteen在此主题中的回复"如何捕获
Surface Pro 4笔顶部按钮的点击/按下事件?
"了解更多详情。

Please refer to Sunteen’s reply in this thread "How to Capture the Click/Press event of the top-Button on a Surface Pro 4 Pen?" for more details.

此外,  欢迎
到开发环球Windows应用论坛!

请阅读粘贴帖子,尤其是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  

请记得下次自己为标题添加标签。

Please remember to add tag to title yourself next time.

最诚挚的问候,

Xavier Eoro

Xavier Eoro


这篇关于[UWP]如何检测按下笔的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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