mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Added UDPWii (iPhone WiiMote) support.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5351 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -344,6 +344,13 @@ void Shutdown()
|
||||
if (SDL_WasInit(0))
|
||||
SDL_Quit();
|
||||
*/
|
||||
|
||||
for (int i=0; i<MAX_WIIMOTES; i++)
|
||||
{
|
||||
if (WiiMapping[i].UDPWM.instance)
|
||||
delete WiiMapping[i].UDPWM.instance;
|
||||
}
|
||||
|
||||
g_SearchDeviceDone = false;
|
||||
}
|
||||
|
||||
@ -376,6 +383,10 @@ void Initialize()
|
||||
memcpy(g_Eeprom[i] + 0x16D0, EepromData_16D0, sizeof(EepromData_16D0));
|
||||
// Copy extension id and calibration to its register, g_Config.Load() is needed before this
|
||||
UpdateExtRegisterBlocks(i);
|
||||
if (WiiMapping[i].UDPWM.enable)
|
||||
WiiMapping[i].UDPWM.instance=new UDPWiimote(WiiMapping[i].UDPWM.port);
|
||||
else
|
||||
WiiMapping[i].UDPWM.instance=NULL;
|
||||
}
|
||||
|
||||
// The emulated Wiimote is initialized
|
||||
|
Reference in New Issue
Block a user