MissionControl/btdrv-mitm/source/controllers/wiimote.hpp

30 lines
694 B
C++

#pragma once
#include "wiicontroller.hpp"
#include "switchcontroller.hpp"
namespace controller {
union WiimoteReportData {
struct {
WiiButtonData buttons;
uint8_t _unk;
} report0x30;
};
class WiimoteController : public WiiController {
public:
static constexpr const HardwareID hardwareIds[] = {
{0x057e, 0x0306}, // Official wiimote
};
WiimoteController(const BluetoothAddress *address);
void convertReportFormat(const HidReport *inReport, HidReport *outReport);
private:
void handleInputReport0x30(const WiimoteReportData *src, SwitchReportData *dst);
};
}