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 SmallJoker
parent 5094838837
commit 65d4335922

@ -76,13 +76,6 @@ static bool detect_touch()
return false; 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; return false;
#else #else
// we don't know, return default // we don't know, return default