3
0
Fork 0
forked from suyu/suyu

If not on Windows, disable raw input

This way, if someone copies their Windows config to other OS, they won't be stuck without web applet for no apparent reason.
This commit is contained in:
Valeri 2021-09-18 15:10:00 +03:00 committed by GitHub
parent b54bf126f7
commit 738cd1896b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -560,7 +560,11 @@ void Config::ReadControlValues() {
ReadTouchscreenValues(); ReadTouchscreenValues();
ReadMotionTouchValues(); ReadMotionTouchValues();
#ifdef _WIN32
ReadBasicSetting(Settings::values.enable_raw_input); ReadBasicSetting(Settings::values.enable_raw_input);
#else
Settings::values.enable_raw_input = false;
#endif
ReadBasicSetting(Settings::values.emulate_analog_keyboard); ReadBasicSetting(Settings::values.emulate_analog_keyboard);
Settings::values.mouse_panning = false; Settings::values.mouse_panning = false;
ReadBasicSetting(Settings::values.mouse_panning_sensitivity); ReadBasicSetting(Settings::values.mouse_panning_sensitivity);