From 65d4335922d4a56a25f6d2aae23fcb6b8dd309ea Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 20 Aug 2024 10:50:29 +0100 Subject: [PATCH] Fix Windows enabling touch controls due to existence of touchscreen (#15003) We want to check for the form factor instead. --- src/defaultsettings.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 9c2ade975..31091005a 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -76,13 +76,6 @@ static bool detect_touch() return false; } - return false; -#elif defined(_WIN32) - // 0x01 The device has an integrated touch digitizer - // 0x80 The device is ready to receive digitizer input. - if ((GetSystemMetrics(SM_DIGITIZER) & 0x81) == 0x81) - return true; - return false; #else // we don't know, return default