diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Helpers/TouchHelper.cs | 8 |
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)) |
