Why I can't detect touch screen?
问题 I'm using this C#(wpf) code to detect touch screen on return Tablet.TabletDevices.OfType<TabletDevice>().Any(dev => dev.Type == TabletDeviceType.Touch) But it is not working. Tablet.TabletDevices Count is always 0. I'm using extension touch monitor(use USB connect PC for touch detect) Is there any better way to check if current PC has touch screen or not? Thanks. Update1: I don't know why but even when I remove the touch screen USB and monitor, GetSystemMetrics(SM_MAXIMUMTOUCHES) still