mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01: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:
parent
9ccd9d341f
commit
2664afd832
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user