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 2025-07-12 13:33:08 -05:00
parent 4a7b00f43e
commit 31014e99c0
1 changed files with 1 additions and 1 deletions

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++)
{