mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Removing reading of the emulated Wiimote state in the real Wiimote mode
because * the purpose of the emulated Wiimote state in the real Wiimote mode is to store the real Wiimote state rather than synchronise with an emulated Wiimote
This commit is contained in:
parent
a1822a3aca
commit
c52a583090
@ -760,6 +760,7 @@ void Wiimote::HidOutputReport(const wm_report* const sr, const bool send_ack)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_REQUEST_STATUS : // 0x15
|
case WM_REQUEST_STATUS : // 0x15
|
||||||
|
if (WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
|
||||||
RequestStatus((wm_request_status*)sr->data);
|
RequestStatus((wm_request_status*)sr->data);
|
||||||
return; // sends its own ack
|
return; // sends its own ack
|
||||||
break;
|
break;
|
||||||
@ -769,6 +770,7 @@ void Wiimote::HidOutputReport(const wm_report* const sr, const bool send_ack)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_READ_DATA : // 0x17
|
case WM_READ_DATA : // 0x17
|
||||||
|
if (WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
|
||||||
ReadData((wm_read_data*)sr->data);
|
ReadData((wm_read_data*)sr->data);
|
||||||
return; // sends its own ack
|
return; // sends its own ack
|
||||||
break;
|
break;
|
||||||
@ -811,7 +813,7 @@ void Wiimote::HidOutputReport(const wm_report* const sr, const bool send_ack)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// send ack
|
// send ack
|
||||||
if (send_ack)
|
if (send_ack && WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
|
||||||
SendAck(sr->wm);
|
SendAck(sr->wm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -863,6 +863,8 @@ void Wiimote::InterruptChannel(const u16 _channelID, const void* _pData, u32 _Si
|
|||||||
// these two types are handled in RequestStatus() & ReadData()
|
// these two types are handled in RequestStatus() & ReadData()
|
||||||
case WM_REQUEST_STATUS :
|
case WM_REQUEST_STATUS :
|
||||||
case WM_READ_DATA :
|
case WM_READ_DATA :
|
||||||
|
if (WIIMOTE_SRC_REAL == g_wiimote_sources[m_index])
|
||||||
|
WiimoteReal::InterruptChannel(m_index, _channelID, _pData, _Size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default :
|
default :
|
||||||
|
@ -299,11 +299,6 @@ void Wiimote::Update()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
WiimoteEmu::Wiimote *const wm = (WiimoteEmu::Wiimote*)::Wiimote::GetPlugin()->controllers[index];
|
|
||||||
|
|
||||||
if (wm->Step())
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Pop through the queued reports
|
// Pop through the queued reports
|
||||||
const Report& rpt = ProcessReadQueue();
|
const Report& rpt = ProcessReadQueue();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user