Commit bfe5dfd
authored
FIX: Improvement for event handling in FixedUpdate mode (#2026)
* [Input System] Improvement for event handling in FixedUpdate mode
Previously InputAction.WasPerformedThisFrame() could be true for consecutive frames.InputAction.
This happens in frames where no FixedUpdate steps are run.1 parent ba9677b commit bfe5dfd
File tree
3 files changed
+18
-5
lines changed- Packages/com.unity.inputsystem
- InputSystem/Actions
3 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
| 1239 | + | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
1288 | | - | |
| 1288 | + | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | | - | |
| 1347 | + | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
| 1420 | + | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
563 | 564 | | |
564 | 565 | | |
565 | 566 | | |
| |||
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
| 888 | + | |
887 | 889 | | |
888 | 890 | | |
889 | 891 | | |
| |||
1579 | 1581 | | |
1580 | 1582 | | |
1581 | 1583 | | |
| 1584 | + | |
1582 | 1585 | | |
1583 | 1586 | | |
1584 | 1587 | | |
| |||
1587 | 1590 | | |
1588 | 1591 | | |
1589 | 1592 | | |
| 1593 | + | |
1590 | 1594 | | |
1591 | 1595 | | |
1592 | 1596 | | |
| |||
2445 | 2449 | | |
2446 | 2450 | | |
2447 | 2451 | | |
| 2452 | + | |
2448 | 2453 | | |
2449 | 2454 | | |
2450 | 2455 | | |
| |||
3627 | 3632 | | |
3628 | 3633 | | |
3629 | 3634 | | |
3630 | | - | |
| 3635 | + | |
3631 | 3636 | | |
3632 | 3637 | | |
3633 | 3638 | | |
| |||
3651 | 3656 | | |
3652 | 3657 | | |
3653 | 3658 | | |
| 3659 | + | |
3654 | 3660 | | |
3655 | 3661 | | |
3656 | 3662 | | |
| |||
3806 | 3812 | | |
3807 | 3813 | | |
3808 | 3814 | | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
3809 | 3821 | | |
3810 | 3822 | | |
3811 | 3823 | | |
| |||
0 commit comments