Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset the GC adapter rumble when stopping a game #3244

Merged
merged 1 commit into from
Nov 18, 2015

Conversation

mathieui
Copy link
Member

@mathieui mathieui commented Nov 8, 2015

And when starting dolphin as well (right after the libusb
initialization).

Intended fix for issue 9001

@JosJuice
Copy link
Member

JosJuice commented Nov 8, 2015

One of the issue comments mentions rumble not resetting when loading savestates. Should that also be fixed? (There might be more situations too, like pausing or using frame advance, but those aren't common)

@mathieui
Copy link
Member Author

mathieui commented Nov 8, 2015

Would it be acceptable to do the reset on Core::PauseAndLock? Or would that be overkill?

@JosJuice
Copy link
Member

JosJuice commented Nov 8, 2015

That sounds appropriate. The worst thing I can imagine happening is canceling a rumble command when a controller gets (dis)connected, and I think it even might be limited to (dis)connecting them using the GUI or hotkeys.

s_controller_rumble[1] = 0;
s_controller_rumble[2] = 0;
s_controller_rumble[3] = 0;

This comment was marked as off-topic.

@degasus
Copy link
Member

degasus commented Nov 17, 2015

LGTM, but needs a rebase

@JMC47
Copy link
Contributor

JMC47 commented Nov 17, 2015

I tried this out a bit, and the screenshot qualm really isn't a big deal. Most of the time I'm not holding the controller when taking a screenshot anyway.

And when loading a savestate, pausing, and starting dolphin as well
(right after the libusb initialization).

Intended fix for issue 9001
degasus added a commit that referenced this pull request Nov 18, 2015
Reset the GC adapter rumble when stopping a game
@degasus degasus merged commit 59b54a7 into dolphin-emu:master Nov 18, 2015
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

automated-fifoci-reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants