Skip to content

Commit

Permalink
Touch handler: use platform version tuple to determine if touch suppo…
Browse files Browse the repository at this point in the history
…rt should be used. Re nvaccess#9682
  • Loading branch information
josephsl committed Nov 21, 2019
1 parent 51b6349 commit fa04f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/touchHandler.py
Expand Up @@ -299,7 +299,7 @@ def touchSupported():
if not config.isInstalledCopy() and not config.isAppX:
log.debugWarning("Touch only supported on installed copies")
return False
if (winVersion.winVersion.major*10+winVersion.winVersion.minor)<62:
if winVersion.winVersion.platform_version < (6, 2, 9200):
log.debugWarning("Touch only supported on Windows 8 and higher")
return False
maxTouches=windll.user32.GetSystemMetrics(SM_MAXIMUMTOUCHES)
Expand Down

0 comments on commit fa04f22

Please sign in to comment.