From 31014e99c0375e559d28876a0c05e7f5dfd5b4c2 Mon Sep 17 00:00:00 2001 From: nfore Date: Sat, 12 Jul 2025 13:33:08 -0500 Subject: [PATCH] Overlays: Put a speed limit on touch pointer tracking A pointer is considered new if it travels ~25% of the screen in one poll. --- input/input_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_driver.c b/input/input_driver.c index c703184953..f8377b6400 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -3387,7 +3387,7 @@ static void input_overlay_track_touch_inputs( /* Compute (squared) distances and match new indexes to old */ for (i = 0; i < state->touch_count; i++) { - min_sq_dist[i] = 1e10f; + min_sq_dist[i] = 3e8f; for (j = 0; j < old_state->touch_count; j++) {