如何区分DynamicRenderer中的Touch和Pen输入? [英] How to differentiate between Touch and Pen input from within DynamicRenderer?

查看:102
本文介绍了如何区分DynamicRenderer中的Touch和Pen输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2010(限于Net 4.0)开发Windows 8应用程序。我使用自定义InkCanvas与自定义DynamicRenderer。我想区分用户触摸屏幕与自定义DynamicRenderer中的笔写。



只是猜测,但似乎我应该能够分辨出差异



OnStylusDown(RawStylusInput rawStylusInput){}



但是我可以得到的是StylusDeviceID或者TabletDeviceID,当我认为我需要某种类型的contextID的顺序。



我相信有办法...但我似乎无法找到它。



感谢您的任何建议!

I am working on a windows 8 application using visual studio 2010 (limited to Net 4.0). I am using a custom InkCanvas with a custom DynamicRenderer. I would like to differentiate between the user touching the screen versus pen writing within the custom DynamicRenderer.

Just guessing, but it seems that I should be able to tell the difference immediately within

OnStylusDown(RawStylusInput rawStylusInput) {}

but all I can get to is a StylusDeviceID or TabletDeviceID when I think I need something on the order of a contextID of some kind.

I am sure there is a way...but I can't seem to find it.

Thanks for any suggestions!

推荐答案

这篇关于如何区分DynamicRenderer中的Touch和Pen输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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