Fix some fail logic and a lil prob with UI when changing source and clicking "Refresh".

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5826 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2010-07-03 11:20:38 +00:00
parent dc8778e2d9
commit a054cc71b6
3 changed files with 19 additions and 19 deletions

View File

@ -135,6 +135,7 @@ void InitPlugin( void* const hwnd )
(*i)->UpdateReferences( g_plugin.controller_interface );
// real wiimotes
WiimoteReal::LoadSettings();
WiimoteReal::Initialize();
}
}
@ -248,7 +249,7 @@ unsigned int Wiimote_GetAttachedControllers()
{
unsigned int attached = 0;
for (unsigned int i=0; i<4; ++i)
if (g_plugin.controllers[i]->default_device.ToString().length())
if (g_wiimote_sources[i])
attached |= (1 << i);
return attached;
}