1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

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

View File

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