summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-07-18 12:34:53 +0200
committerGitHub <noreply@github.com>2026-07-18 12:34:53 +0200
commit415ec4de182034179143231e84c17dbcdf8be8aa (patch)
treeccc8bcc175fc2ad5b662432caaeb0e16922bdb9e /Source/Core
parentb6d8bc299ee7d03496d624b2e6b9a18d70522435 (diff)
parent342115806beb93a1f14dd9e40b6839148d70b986 (diff)
Merge pull request #14673 from tommywaaf/android-dolphinbar-balance-board
Android: Route DolphinBar Balance Board to the Balance Board slot
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp b/Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp
index e82f389a21..5e201d6ac2 100644
--- a/Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp
+++ b/Source/Core/Core/HW/WiimoteReal/IOAndroid.cpp
@@ -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));
}
}