Fix Windows enabling touch controls due to existence of touchscreen (#15003)

We want to check for the form factor instead.
This commit is contained in:
rubenwardy 2024-08-20 10:50:29 +01:00 committed by GitHub
parent 9ccd9d341f
commit 2664afd832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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