diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-05-01 13:06:41 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-05-01 13:06:41 +0300 |
| commit | facb4fd1efd3f14ee7256dc09882b0330cc7ab7f (patch) | |
| tree | 75226f2d2b1cd837a77bd691876b3faef78d48a0 /Software/Visual_Studio/PPC/Tango.PPC.Updater | |
| parent | 6b3aa886b9db72881abb1f45fda7b28ab5c6ab03 (diff) | |
| download | Tango-facb4fd1efd3f14ee7256dc09882b0330cc7ab7f.tar.gz Tango-facb4fd1efd3f14ee7256dc09882b0330cc7ab7f.zip | |
Eureka adjustments.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Updater')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 /// </summary> 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)) |
