upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 20:11:46 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 20:11:46 -0600
commit4a7084506926240b5770481d8ad0aa5f1a846299 (patch)
tree65a7b2e0241d83d77b8fa2a894e820c4b5d0c503 /runtime/test/tiny_game_exit_code_test.cpp
parentaeb24285be97e415c9f46e262791473d44a66f0c (diff)
gameinput: SetParams keeps the force-feedback effect's kind
IGameInputForceFeedbackEffect::SetParams updates the parameters of the effect's own kind; another kind is refused and the effect keeps what it had (timbot103's review on #2497). SetParams checked only that the motor reports the new kind, so a constant effect could become a sine. It now refuses any params->kind other than the effect's. An effect's SDL type therefore never changes, and the destroy-and- recreate path this PR added to sync() for a kind change is unreachable, so it is removed again. gameinput_test: SetParams refuses both a kind the motor lacks and one it reports, leaves the parameters and the SDL effect alone, and the sine and spring checks run on effects of their own made with CreateForceFeedbackEffect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions