GameInput: IsForceFeedbackMotorPoweredOn stays false, and says why (#4559) #4662
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4662
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4661"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RochDawid on GitHub · 2026-12-01 00:53 UTC · original
RochDawid:gameinput-ffb-motors→main· +22 −0 · 1 files · 1 commits · openRefs #4560
What it changes
IsForceFeedbackMotorPoweredOn(device slot 0x38) keeps answeringfalse. This pull request does not change that. It documents whyfalseis correct and adds a test that pins the behaviour.Why not
true:forceFeedbackMotorCountin the device info. A pad's body motors aresupportedRumbleMotors(we report0x3, low and high frequency) and are driven throughSetRumbleState(slot 0x50), which never consults this query.forceFeedbackMotorCount = 0. Answeringtruefor any index would claim a motor the device info says does not exist.motor < 2made no difference to rumble.Changes:
motor_powered_onexplaining the force-feedback vs rumble distinction, with a reference to #4560, so this does not get "fixed" again.raw::rumble_without_force_feedback: every count pastrumble_motors(includingforceFeedbackMotorCount) is 0 for every device, no motor index reports powered on, and pad 0 still offers both rumble motors.It changes no behaviour, so
Refsrather thanFixes: if the maintainer agreesfalseis right, #4560 can be closed as not a bug.How it was tested
cargo testpassed for the crates it touches: yes.cargo test -p victory-hle --lib gameinput: 97 passed (Windows toolchain), commit233cb022.cargo clippy -p victory-hle --all-targets --locked -- -D warnings: clean.CIworkflow has not run on this commit yet (it is waiting for approval to run), so it has not passed.Checked for overlap
crates/victory-hle/src/modules/gameinput.rs, for rumble on generic pads; it does not touchmotor_powered_on).@gbmrrr on GitHub · 2026-12-01 02:27 UTC · original
Confirmed, and thank you — you are right and my issue was wrong about the cause. I have reverted my local
motor < 2and taken your reasoning into the doc comment here, crediting #4662.The distinction you make is the one I missed: force-feedback motors are not rumble motors. I read
IsForceFeedbackMotorPoweredOnas "is this motor able to buzz", which it is not —supportedRumbleMotorsis that question, and it is a different field fromforceFeedbackMotorCount. Since every device of ours reports the count as 0, answeringtruefor any index made the two halves of our ownDeviceInfocontradict each other. Worse, the half that actually drives what a player feels isSetRumbleState(slot0x50), which never consults this query at all.Two things from my side that support keeping
false:So nothing in this title depends on it either way, which is exactly why the
falsethat describes the hardware honestly should stay rather than thetruethat made a local symptom look better.One small thing I did on my own tree that may be worth having here, if you want it:
0x48(haptics) used to answerE_NOTIMPLfrom our generic "not written yet" handler, which reads as our gap rather than the device has none. I changed that slot to answerE_NOINTERFACE— the console's answer for an interface the device does not implement — while0x30(force feedback) keepsE_NOTIMPL, since that is the interface we genuinely have not written. It changes nothing for this title (slot0x18only, as above) and it is outside what you are changing, so it is a suggestion rather than a request to fold into this PR.Your test pins the behaviour, which is what my issue should have produced instead of a bad one-line fix. Merge as far as I am concerned.
github-bot referenced this pull request2026-12-01 06:59:43 +00:00
github-bot referenced this pull request2026-12-01 13:10:23 +00:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.