From dc8778e2d9bd03a1520ac718c55730e8c6da10b9 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sat, 3 Jul 2010 10:54:55 +0000 Subject: [PATCH] On Windows, wiiuse_find implicitly does the equivalent of wiiuse_connect as an accident of implementation. On other platforms, an explicit call to wiiuse_connect is required. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5825 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_WiimoteNew/Src/WiimoteReal/WiimoteReal.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_WiimoteNew/Src/WiimoteReal/WiimoteReal.cpp b/Source/Plugins/Plugin_WiimoteNew/Src/WiimoteReal/WiimoteReal.cpp index 393f660e88..5dba8ea538 100644 --- a/Source/Plugins/Plugin_WiimoteNew/Src/WiimoteReal/WiimoteReal.cpp +++ b/Source/Plugins/Plugin_WiimoteNew/Src/WiimoteReal/WiimoteReal.cpp @@ -261,6 +261,11 @@ unsigned int Initialize() DEBUG_LOG(WIIMOTE, "Found %i Real Wiimotes, %i wanted", g_wiimotes_found, wanted_wiimotes); + g_wiimotes_found = + wiiuse_connect(g_wiimotes_from_wiiuse, g_wiimotes_found); + + DEBUG_LOG(WIIMOTE, "Connected to %i Real Wiimotes", g_wiimotes_found); + g_wiimote_critsec.Enter(); // enter // create real wiimote class instances, assign wiimotes