Is it possible to let my c# wpf program know if the user has a touchscreen or not?

前端 未结 3 1558
礼貌的吻别
礼貌的吻别 2020-12-06 17:00

I\'ve got an login application that has a swipe system that people only can use when they have a touchscreen. They can login by swiping their personal pattern swipe code.

3条回答
  •  感动是毒
    2020-12-06 17:38

    There is IInkTablet2 COM interface in Windows XP Tablet PC Edition or managed wrapper Microsoft.Ink.Tablet class for non-WPF applications. But it most of touch screen drivers are "mouse" drivers and can't be detected in this way.

提交回复
热议问题