mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Removing Wii input use of an unsaved state value
because that allow the complete state to be loaded
This commit is contained in:
parent
0fd3acd152
commit
9e779c22b3
@ -487,18 +487,16 @@ u32 CWII_IPC_HLE_Device_usb_oh1_57e_305::Update()
|
|||||||
|
|
||||||
// The Real Wiimote sends report every ~5ms (200 Hz).
|
// The Real Wiimote sends report every ~5ms (200 Hz).
|
||||||
const u64 interval = SystemTimers::GetTicksPerSecond() / 200;
|
const u64 interval = SystemTimers::GetTicksPerSecond() / 200;
|
||||||
const u64 each_wiimote_interval = interval / m_WiiMotes.size();
|
|
||||||
const u64 now = CoreTiming::GetTicks();
|
const u64 now = CoreTiming::GetTicks();
|
||||||
|
|
||||||
if (now - m_last_ticks > each_wiimote_interval)
|
if (now - m_last_ticks > interval)
|
||||||
{
|
{
|
||||||
static int wiimote_to_update = 0;
|
for (unsigned int i = 0; i < m_WiiMotes.size(); i++)
|
||||||
if (m_WiiMotes[wiimote_to_update].IsConnected())
|
if (m_WiiMotes[i].IsConnected())
|
||||||
{
|
{
|
||||||
NetPlay_WiimoteUpdate(wiimote_to_update);
|
NetPlay_WiimoteUpdate(i);
|
||||||
Wiimote::Update(wiimote_to_update);
|
Wiimote::Update(i);
|
||||||
}
|
}
|
||||||
wiimote_to_update = (wiimote_to_update + 1) % m_WiiMotes.size();
|
|
||||||
m_last_ticks = now;
|
m_last_ticks = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user