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

NetPlay: Set Wiimotes at join #8987

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tibladar
Copy link

This assigns a wiimote for every new user in NetPlay, like it's already done for GC pads.

There are probably better ways to do this (e.g. detect if the game is for Wii/GC and set the controllers accordingly) but it depends on what is wanted.

Should fix https://bugs.dolphin-emu.org/issues/12206

@JMC47
Copy link
Contributor

JMC47 commented Jul 28, 2020

Has this been tested to work with things like differing attachments and such? That was one of the main hurdles that caused it to turn out the way it was now.

@JosJuice
Copy link
Member

Actually, wouldn't the problem with this PR rather be that it forces you to deal with Wii Remote sync (unless you manually turn off the Wii Remotes) when playing a Wii game that supports GameCube controllers?

@JMC47
Copy link
Contributor

JMC47 commented Jul 28, 2020

Oops. I misunderstood the purpose of this Pull Request. Please ignore my previous comment.

Maybe we should auto-detect GC vs Wii?

@Tibladar
Copy link
Author

Tibladar commented Jul 28, 2020

I'm not an expert, so I can't really say without testing.
The games I own run with this PR without problems but none supports both Wii and CameCube controllers.

As for attachments, I tested the Nunchuk a bit.

Maybe it's better to detect if the game is for Wii/GC (like NetPlayServer.cpp#L1406) and set the controllers accordingly but it really depends on what the user wants. Or this can be a NetPlay setting/switch (Mapping Preset: GCpad only, Wiimotes only, Both)

@Tibladar
Copy link
Author

Is there a way to detect from a NetPlay thread if the current game is for Wii or GC?
Calling game->GetPlatform() is only working in GUI threads.

@jordan-woyak
Copy link
Member

Like JosJuice said, I think this is going to be undesirable in Wii games that are typically played with GC controller (e.g. Brawl).

@Tibladar
Copy link
Author

Tibladar commented Sep 18, 2020

Then the other option would be to add a setting where the user can switch between the controller presets 'GC only' (default), 'Wii only' or 'Both'.

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