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

[Android] Implement support for real Wiimotes with the DolphinBar #3593

Merged

Conversation

Sonicadvance1
Copy link
Contributor

This is the only way to get Wiimotes working under Android now.
This, just like the Wii U Gamecube Controller Adapter, completely goes around Android's limitations and talks with the device directly through USBManager.

Couple notes.
Continuous scanning must be enabled otherwise the Wiimotes won't be seen.
The UI doesn't expose support for this yet. One must change the Wiimote source and continuous scanning settings manually.

Testing up to two wiimotes in Taiko No Tatsujin, no reason to believe all four won't work.

Review on Reviewable

@JMC47
Copy link
Contributor

JMC47 commented Feb 5, 2016

I have no way to test this, but, does this affect non-Android at all?

@Sonicadvance1
Copy link
Contributor Author

No.

@JMC47
Copy link
Contributor

JMC47 commented Feb 5, 2016

Then +1 from me

@lioncash
Copy link
Member

lioncash commented Feb 5, 2016

Review status: 0 of 9 files reviewed at latest revision, 6 unresolved discussions.


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 18 [r1] (raw file):
Doesn't look like this is used outside of this source file (unless I've misread anything)


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 61 [r1] (raw file):
ampersands against type


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 69 [r1] (raw file):
static_cast


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 106 [r1] (raw file):
nullptr


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 148 [r1] (raw file):
nullptr


Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 159 [r1] (raw file):
nullptr


Comments from the review on Reviewable.io

@Sonicadvance1
Copy link
Contributor Author

Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 18 [r1] (raw file):
You have misread. This variable isn't set inside of this source file.


Comments from the review on Reviewable.io

@Sonicadvance1 Sonicadvance1 force-pushed the Android_Mayflash_adapter branch 2 times, most recently from a5df08c to 4a50deb Compare February 5, 2016 00:47
@degasus
Copy link
Member

degasus commented Feb 5, 2016

Review status: 0 of 9 files reviewed at latest revision, 1 unresolved discussion.


a discussion (no related file):

Continuous scanning must be enabled otherwise the Wiimotes won't be seen.
What about just enabling it by default on android?


Comments from the review on Reviewable.io

@Sonicadvance1
Copy link
Contributor Author

That will be what is done.

On Fri, Feb 5, 2016 at 3:00 AM, Markus Wick notifications@github.com
wrote:

Review status: 0 of 9 files reviewed at latest revision, 1 unresolved

discussion.

a discussion
https://reviewable.io:443/reviews/dolphin-emu/dolphin/3593#-K9ke3wSo9o90DI3JWSJ:-K9ke3wSo9o90DI3JWSK:-657778840
(no related file):

Continuous scanning must be enabled otherwise the Wiimotes won't be seen.
What about just enabling it by default on android?


Comments from the review on Reviewable.io
https://reviewable.io:443/reviews/dolphin-emu/dolphin/3593


Reply to this email directly or view it on GitHub
#3593 (comment).

@Sonicadvance1
Copy link
Contributor Author

Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp, line 18 [r1] (raw file):
This global reference is going to get cleaned up along with the rest of the places in the source that does similar things in a couple of days.


Comments from the review on Reviewable.io

@BhaaLseN
Copy link
Member

BhaaLseN commented Feb 7, 2016

Reviewed 8 of 9 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 6 unresolved discussions.


Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java, line 23 [r2] (raw file):
Any reason not to make those final aswell?


Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java, line 61 [r2] (raw file):
I'd put braces here, since the inside of the statement is not a single line


Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java, line 83 [r2] (raw file):
final?


Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java, line 91 [r2] (raw file):
Some space between the pipes?


Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java, line 114 [r2] (raw file):
Those two numbers appear multiple times throughout the code...maybe make them named constants too?


Comments from the review on Reviewable.io

This is the only way to get Wiimotes working under Android now.
This, just like the Wii U Gamecube Controller Adapter, completely goes around Android's limitations and talks with the device directly through USBManager.

Couple notes.
Continuous scanning must be enabled otherwise the Wiimotes won't be seen.
The UI doesn't expose support for this yet. One must change the Wiimote source and continuous scanning settings manually.

Testing up to two wiimotes in Taiko No Tatsujin, no reason to believe all four won't work.
@BhaaLseN
Copy link
Member

BhaaLseN commented Feb 7, 2016

Reviewed 1 of 1 files at r4.
Review status: all files reviewed at latest revision, 6 unresolved discussions.


Comments from the review on Reviewable.io

Sonicadvance1 added a commit that referenced this pull request Feb 7, 2016
[Android] Implement support for real Wiimotes with the DolphinBar
@Sonicadvance1 Sonicadvance1 merged commit 35d7c2b into dolphin-emu:master Feb 7, 2016
@Sonicadvance1 Sonicadvance1 deleted the Android_Mayflash_adapter branch February 7, 2016 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants