Commit f824bb4
committed
fix: use infinite duration for constant/damper/inertia effects (Boomslangnz#103)
Effects with configFeedbackLength (120ms default) expired between game
loop triggers when the game state didn't change frequently enough.
The T500RS and other wheels that strictly respect SDL effect durations
would go limp during sustained forces (e.g. long turns).
Using SDL_HAPTIC_INFINITY keeps effects active until the next update
or explicit stop, matching the pattern already used for Spring effects.1 parent 66f30f5 commit f824bb4
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
| 1345 | + | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
| 1438 | + | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| |||
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | | - | |
| 1523 | + | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
| |||
0 commit comments