mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Preliminary emulated Wiimote Extension support. It works in some games. The nunchuck controls are numpad 4, 5, 6, 8 for up down left right and C and Z for the c and z buttons. You have to select Extension connected from the settings to enable it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1212 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
482cc819fb
commit
76ca6ac031
15 changed files with 1033 additions and 216 deletions
|
@ -942,9 +942,9 @@ namespace Core
|
|||
{
|
||||
void Callback_WiimoteInput(u16 _channelID, const void* _pData, u32 _Size)
|
||||
{
|
||||
LOGV(WII_IPC_WIIMOTE, 2, "=========================================================");
|
||||
LOGV(WII_IPC_WIIMOTE, 3, "=========================================================");
|
||||
const u8* pData = (const u8*)_pData;
|
||||
LOGV(WII_IPC_WIIMOTE, 2, "Callback_WiimoteInput: 0x%x", _channelID);
|
||||
LOGV(WII_IPC_WIIMOTE, 3, "Callback_WiimoteInput: 0x%x", _channelID);
|
||||
std::string Temp;
|
||||
for (u32 j=0; j<_Size; j++)
|
||||
{
|
||||
|
@ -952,9 +952,9 @@ namespace Core
|
|||
sprintf(Buffer, "%02x ", pData[j]);
|
||||
Temp.append(Buffer);
|
||||
}
|
||||
LOGV(WII_IPC_WIIMOTE, 2, " Data: %s", Temp.c_str());
|
||||
LOGV(WII_IPC_WIIMOTE, 3, " Data: %s", Temp.c_str());
|
||||
|
||||
s_Usb->m_WiiMotes[0].SendL2capData(_channelID, _pData, _Size);
|
||||
LOGV(WII_IPC_WIIMOTE, 2, "=========================================================");
|
||||
LOGV(WII_IPC_WIIMOTE, 3, "=========================================================");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue