aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-05-01 13:06:41 +0300
committerRoy <Roy.mail.net@gmail.com>2023-05-01 13:06:41 +0300
commitfacb4fd1efd3f14ee7256dc09882b0330cc7ab7f (patch)
tree75226f2d2b1cd837a77bd691876b3faef78d48a0 /Software/Visual_Studio/Tango.Touch
parent6b3aa886b9db72881abb1f45fda7b28ab5c6ab03 (diff)
downloadTango-facb4fd1efd3f14ee7256dc09882b0330cc7ab7f.tar.gz
Tango-facb4fd1efd3f14ee7256dc09882b0330cc7ab7f.zip
Eureka adjustments.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs b/Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs
index 4247f37e9..e3ad29be4 100644
--- a/Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs
+++ b/Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs
@@ -18,6 +18,14 @@ namespace Tango.Touch.Helpers
/// </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))