upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 13:37:20 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 13:37:20 -0600
commitaeb24285be97e415c9f46e262791473d44a66f0c (patch)
tree6a9512f56fb6e5d282531d163c732123da42376e /runtime/src/xma2_decoder.cpp
parent43a9d562d355e7c5c428e486071b456353de8b05 (diff)
gameinput: force-feedback kind changes, SetParams features, locked motor reads, no null memcpy
From a review of the shim by kevincommits (#1608): - ForceFeedbackEffect::SetParams accepted any kind, also one the motor does not report, which CreateForceFeedbackEffect refuses. It now refuses it the same way. - A kind change through SetParams was sent to SDL as an update of the existing effect, which SDL_UpdateHapticEffect refuses ("Updating effect type is illegal"), so the effect stopped. The poll thread now destroys the old SDL effect and creates one of the new type. The test's fake haptics refuses a type change in an update, as SDL does. - CreateForceFeedbackEffect and IsForceFeedbackMotorPoweredOn read the motor count, features and haptic handle that open_pad and close_pad write on the poll thread under g().mu, without the lock. They take it now. - GetControllerAxisState and GetControllerButtonState called memcpy with a null buffer for 0 bytes. They copy only when there is something to copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions