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

@@ -44,6 +44,7 @@ int resize_pending = 0;
int resize_w = 0;
int resize_h = 0;
double mouse_sensitivity = 1.0; /* Unused. */
double mouse_x_error = 0.0, mouse_y_error = 0.0; /* Unused. */
static uint8_t interpixels[17842176];
extern void RenderImGui();