Overlays: Put a speed limit on touch pointer tracking

A pointer is considered new if it travels ~25% of the screen in one poll.
This commit is contained in:
nfore committed 2025-07-12 14:11:22 -05:00
1 parent 4a7b00f43e
commit 31014e99c0
1 file changed
+1 -1
+1 -1
View File
@@ -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++)
{