mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +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
5094838837
commit
65d4335922
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user