mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-20 09:24:59 -05:00
Merge pull request #14673 from tommywaaf/android-dolphinbar-balance-board
Android: Route DolphinBar Balance Board to the Balance Board slot
This commit is contained in:
@@ -46,10 +46,12 @@ auto WiimoteScannerAndroid::FindAttachedWiimotes() -> FindResults
|
||||
if (!wiimote->ConnectInternal())
|
||||
continue;
|
||||
|
||||
// TODO: We make no attempt to differentiate balance boards here.
|
||||
// wiimote->IsBalanceBoard() would probably be enough to do that.
|
||||
|
||||
results.wii_remotes.emplace_back(std::move(wiimote));
|
||||
// Differentiate balance boards so they are routed to the balance
|
||||
// board results rather than being treated as a regular Wii Remote.
|
||||
if (wiimote->IsBalanceBoard())
|
||||
results.balance_boards.emplace_back(std::move(wiimote));
|
||||
else
|
||||
results.wii_remotes.emplace_back(std::move(wiimote));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user