Add option to disable native pen/touch support

This commit is contained in:
Cameron Gutman
2023-12-31 19:03:07 -06:00
parent 729922d2c0
commit 3ca75bee19
5 changed files with 38 additions and 1 deletions

View File

@@ -1720,7 +1720,9 @@ namespace platf {
// We support pen and touch input on Win10 1809+
if (GetProcAddress(GetModuleHandleA("user32.dll"), "CreateSyntheticPointerDevice") != nullptr) {
caps |= platform_caps::pen_touch;
if (config::input.native_pen_touch) {
caps |= platform_caps::pen_touch;
}
}
else {
BOOST_LOG(warning) << "Touch input requires Windows 10 1809 or later"sv;