积极答复者
win 8有没有API判断当前设备是使用鼠标还是触摸屏进行交互?

问题
答案
-
Hi,
看看这篇文章:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh868250(v=win.10).aspx
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 龚海伟 2013年3月21日 7:57
全部回复
-
Hi,
比如,如果你使用的是PointerPressed事件,可以通过e.Pointer.PointerDeviceType得到类型。
参考:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.input.pointerdevicetype.aspx
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Hi,
看看这篇文章:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh868250(v=win.10).aspx
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 龚海伟 2013年3月21日 7:57