How to detect a device with touch control (Win 8, C # .NET)

Some touch functions will not work properly in my application when working on MS Surface Win8 Pro. This is only when the DPI font is set to 150% (unfortunately, by default). I want to show the user a message if they run my application in Win8 on a touch screen device in order to change the dpi setting for a better experience. I know how to check the OS settings and dpi settings, but I'm looking for a way to check if a touch device is present, so I do not need to show this message to users working on other platforms / devices. My application is in C # .Net 4.5.

This is not a Windows 8 application. It is a winform that can be run in Vista / 7/8. I do not see the Windows.Devices.Input namespace suggested in another post?

0
source share

Source: https://habr.com/ru/post/1210499/


All Articles