Improve handling of High-DPI mice

- Reduce lower bound of mouse sensitivity
 - Add error accumulators to prevent small motions from being rounded off
This commit is contained in:
Jameson Ernst
2022-09-14 22:11:32 -07:00
parent 5996854ff5
commit 84f5d9c393
6 changed files with 15 additions and 5 deletions

View File

@@ -180,8 +180,8 @@ load_general(void)
lang_id = plat_language_code(p);
mouse_sensitivity = ini_section_get_double(cat, "mouse_sensitivity", 1.0);
if (mouse_sensitivity < 0.5)
mouse_sensitivity = 0.5;
if (mouse_sensitivity < 0.1)
mouse_sensitivity = 0.1;
else if (mouse_sensitivity > 2.0)
mouse_sensitivity = 2.0;