Skip to content
Permalink
Browse files

WiimoteReal: Unbreak.

  • Loading branch information...
jordan-woyak committed Nov 25, 2018
1 parent 42b9392 commit 10c2101e72de7f764f183ebd33fad0125550c92c
Showing with 4 additions and 9 deletions.
  1. +2 −7 Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
  2. +2 −2 Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h
@@ -966,7 +966,6 @@ void Wiimote::ControlChannel(const u16 channel_id, const void* data, u32 size)
return;
}

// this all good?
m_reporting_channel = channel_id;

const hid_packet* hidp = reinterpret_cast<const hid_packet*>(data);
@@ -1008,7 +1007,6 @@ void Wiimote::ControlChannel(const u16 channel_id, const void* data, u32 size)

void Wiimote::InterruptChannel(const u16 channel_id, const void* data, u32 size)
{
// this all good?
m_reporting_channel = channel_id;

const hid_packet* hidp = reinterpret_cast<const hid_packet*>(data);
@@ -1019,11 +1017,8 @@ void Wiimote::InterruptChannel(const u16 channel_id, const void* data, u32 size)
switch (hidp->param)
{
case HID_PARAM_OUTPUT:
{
const wm_report* sr = reinterpret_cast<const wm_report*>(hidp->data);
HidOutputReport(sr);
}
break;
HidOutputReport(reinterpret_cast<const wm_report*>(hidp->data));
break;

default:
PanicAlert("HidInput: HID_TYPE_DATA - param 0x%02x", hidp->param);
@@ -680,9 +680,9 @@ class Wiimote : public ControllerEmu::EmulatedController

// Activate motion plus:
reg_data.ext_identifier[2] = ACTIVE_DEVICE_ADDR << 1;
times_updated_since_activation = 0x2;
reg_data.initialization_status = 0x2;

// Test some hax
// Some hax to disable encryption:
std::array<u8, 1> data = {0x55};
i2c_bus.BusWrite(ACTIVE_DEVICE_ADDR, 0xf0, (int)data.size(), data.data());
}

0 comments on commit 10c2101

Please sign in to comment.
You can’t perform that action at this time.