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

InputCommon/XInput: Expose battery as input and cleanups. #8614

Merged
merged 2 commits into from
Feb 9, 2020

Conversation

jordan-woyak
Copy link
Member

Moved things that didn't need to be in the header.
Replaced c-arrays with std::array.
Killed some memset/cmps.
Cleaned up some comments.
Marked classes as final.

@iwubcode
Copy link
Contributor

iwubcode commented Feb 9, 2020

Just curious, what's the advantage of having battery as an input? Is this so the user can expose the battery for alternative devices?

@jordan-woyak
Copy link
Member Author

@iwubcode The only useful purpose is mapping it to the battery setting of an emulated Wii Remote.
Many games will then give you alerts when your battery is low and such.

@mbc07
Copy link
Member

mbc07 commented Feb 9, 2020

This is extremely useful now that PR #8417 got merged...

@JMC47 JMC47 merged commit 5ab846a into dolphin-emu:master Feb 9, 2020
@jordan-woyak jordan-woyak deleted the xinput-battery branch February 9, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants