Commit 721bb44
committed
Reset input smoothing on device hotplug
Previously, smoothing state persisted across device hotplug events,
causing coordinate jumps when devices were reconnected.
Changes:
- Track device list changes (additions or removals)
- Reset smooth_initialized flag when device list changes
- Prevents coordinate jumps from stale smoothing state1 parent 134607d commit 721bb44
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| 354 | + | |
353 | 355 | | |
354 | | - | |
| 356 | + | |
355 | 357 | | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
358 | 366 | | |
359 | 367 | | |
360 | 368 | | |
361 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
362 | 377 | | |
363 | 378 | | |
364 | 379 | | |
| |||
0 commit comments