From facb4fd1efd3f14ee7256dc09882b0330cc7ab7f Mon Sep 17 00:00:00 2001 From: Roy Date: Mon, 1 May 2023 13:06:41 +0300 Subject: Eureka adjustments. --- Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Updater') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs index 3a1e85373..01f96c619 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs @@ -389,6 +389,14 @@ namespace Tango.PPC.Updater /// public static bool IsTouchEnabled() { + const int MAXTOUCHES_INDEX = 95; + int maxTouches = GetSystemMetrics(MAXTOUCHES_INDEX); + + if (maxTouches > 0) + { + return true; + } + foreach (TabletDevice tabletDevice in Tablet.TabletDevices) { if (tabletDevice.Type == TabletDeviceType.Touch && !String.IsNullOrWhiteSpace(tabletDevice.Name)) -- cgit v1.3.1