DolphinQt: Add buttons to create and reset Wii remote pairings on Windows.

This commit is contained in:
Jordan Woyak committed 2025-10-12 12:37:04 -05:00
1 parent 8845fbdb7e
commit 801f38d4e5
3 files changed
+96 -7

No files matched your search

+11 -2
View File
@@ -308,8 +308,17 @@ void WiimoteScannerWindows::FindAndAuthenticateWiimotes()
{
// The sync button method conveniently makes remotes seek reconnection on button press.
// I think the 1+2 method is effectively pointless?
const auto pair_count =
DiscoverAndPairWiimotes(DEFAULT_INQUIRY_LENGTH, AuthenticationMethod::SyncButton);
static constexpr auto auth_method = AuthenticationMethod::SyncButton;
// Windows isn't so cooperative. This helps one button click actually able to pair a remote.
constexpr int ITERATION_COUNT = 3;
RemoveUnusableWiimoteBluetoothDevices();
auto pair_count = 0;
for (int i = 0; i != ITERATION_COUNT; ++i)
pair_count += DiscoverAndPairWiimotes(DEFAULT_INQUIRY_LENGTH, auth_method);
NOTICE_LOG_FMT(WIIMOTE, "Successfully paired Wiimotes: {}", pair_count);
}